我正在尝试为 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 步。模态视图没有显示激活键盘的开关,它显示了一个空视图,如下所示:
我点击了完成按钮,它在激活列表中显示了我的自定义键盘:
但是当我想使用这个键盘时,例如在聚光灯下,它不会显示我的键盘