我正在尝试为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.
我的问题出现在第五步。模态视图没有显示一个切换键盘的开关,而是像下面这样显示了一个空视图: 我点击了完成按钮,它显示我的自定义键盘已经被激活: 但是当我想要在例如聚光灯中使用这个键盘时,它不会显示我的键盘: