我正在尝试为 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 :
我点击了完成按钮,它在激活列表中显示了我的自定义键盘:
但是当我想使用这个键盘时,例如在聚光灯下,它不会显示我的键盘
最佳答案
单击完成按钮将激活键盘。这些菜单中存在一些明显的错误。
要更改键盘,您也可以尝试点击按钮来更改键盘,而不是像在上一个屏幕截图中那样按住它。
此外,您似乎将该键盘的语言设置为波斯语,我猜它没有出现是因为您的系统语言不是波斯语(或者您输入的文本字段不支持波斯语).
如果模拟器中有其他错误会影响这一点,我不会感到惊讶。我很高兴听到您能够让它发挥作用。
关于ios - 无法启用 iOS8 自定义键盘,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24309731/