iOS8 Custom Keyboard Settings.bundle does not show up

吃可爱长大的小学妹 提交于 2019-12-13 00:43:54

问题


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.

-- best regards


回答1:


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.

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.



来源:https://stackoverflow.com/questions/26061905/ios8-custom-keyboard-settings-bundle-does-not-show-up

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!