iOS8自定义键盘Settings.bundle未显示 [英] iOS8 Custom Keyboard Settings.bundle does not show up

查看:130
本文介绍了iOS8自定义键盘Settings.bundle未显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在键盘目标中添加了一个Settings.bundle。但是当我在设置中添加键盘时,Settings.bundle中的项目不会显示。我有一次工作。但这是在Beta 4中。

I added a Settings.bundle to the keyboard target. But when I add the keyboard in the settings, the Items from the Settings.bundle doesn't show up. I had it working once. But this was in Beta 4.

- 最好的问候

推荐答案

在iOS8.0.2中,设置显示在iOS设置应用程序的常规 - >键盘部分。
但是,iOS中的错误会阻止读取这些值。

In iOS8.0.2, the settings appear in the General->Keyboard section of the iOS settings app. However, a bug in iOS prevents from reading these values.

解决方案是在包含应用程序中创建设置屏幕,然后读取/写入设置到共享容器,使用 [[NSUserDefaults alloc] initWithSuiteName:@group.your.group.name]

The solution would be to create a settings screen in your containing app, and read/write the settings to the Shared Container, using [[NSUserDefaults alloc] initWithSuiteName:@"group.your.group.name"]

请注意,此解决方案要求用户允许在键盘设置中进行完全访问,这当前不是一个非常用户友好的设置。

Note, though, that this solution requires the user to allow full access in the keyboard settings, which is currently not a very user-friendly setting.

这篇关于iOS8自定义键盘Settings.bundle未显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆