ios - 无法启用 iOS8 自定义键盘

标签 ios objective-c ios8 xcode6 ios-app-extension

我正在尝试为 iOS 8 设计自定义键盘。以下是我的开发步骤:

1. Created new project (Single view)
2. Created a new target: File > New > Target, and in the iOS template group chose the Custom Keyboard template.

然后我尝试根据文档步骤启用键盘,这些步骤是:

1. Run the app
2. In iOS Simulator, press home button (Command+Shift+H)
3. Go to Settings > General > Keyboard > Keyboards.
4. Tap Add New Keyboard.
5. In the Purchased Keyboards group, tap the name of your new keyboard. A modal view appears with a switch to enable your keyboard.
6. Tap the switch to enable your keyboard. A warning alert appears.
7. In the warning alert, tap Add Keyboard to finish enabling your new keyboard. Then tap Done.

我的问题出在第 5 步。模态视图不显示激活键盘的开关,它显示如下所示的空 View :

enter image description here

enter image description here

我点击了完成按钮,它在激活列表中显示了我的自定义键盘:

enter image description here

但是当我想使用这个键盘时,例如在聚光灯下,它不会显示我的键盘

enter image description here

最佳答案

单击完成按钮将激活键盘。这些菜单中存在一些明显的错误。

要更改键盘,您也可以尝试点击按钮来更改键盘,而不是像在上一个屏幕截图中那样按住它。

此外,您似乎将该键盘的语言设置为波斯语,我猜它没有出现是因为您的系统语言不是波斯语(或者您输入的文本字段不支持波斯语).

如果模拟器中有其他错误会影响这一点,我不会感到惊讶。我很高兴听到您能够让它发挥作用。

关于ios - 无法启用 iOS8 自定义键盘,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24309731/

相关文章:

android - Flutter iOS 应用程序 - 在 TestFlight 中测试应用程序升级

ios - xcode 中 IOS 上的 AUEffectBase.h ?

android - 在 Android 中通过套接字发送数据

objective-c - 编程更改界面方向,但键盘方向与 iOS 8 上的状态栏不同

ios - 如何在 Swift 中将 NSIndexPath 转换为 Int?

ios - 将图像旋转 180 度

iphone - 如何在 UIImagePickerController - didFinishPickingMediaWithInfo 中获取发送者按钮标签/名称/ID?

ios - 带有在另一个类中声明的 pushViewController 的 UIButton

ios8 - Xcode6中如何获取设备控制台?

iphone - 有什么方法可以禁用 ios 8 中的键盘预测栏吗?