【发布时间】:2014-06-19 14:57:43
【问题描述】:
我正在尝试为 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 步。模态视图没有显示激活键盘的开关,它显示了一个空视图,如下所示:
我点击了完成按钮,它在激活列表中显示了我的自定义键盘:
但是当我想使用这个键盘时,例如在聚光灯下,它不会显示我的键盘
【问题讨论】:
-
@SantaClaus 感谢您的评论,我已经更新了我的问题。点击完成按钮后又添加了两张图片。
-
看起来您将该键盘的语言设置为波斯语,我猜它没有出现是因为您的系统语言不是波斯语(或者您输入的文本字段没有支持波斯语)。
-
您也可以尝试只点击按钮来更改键盘,而不是像上一个屏幕截图那样按住它。
-
@SantaClaus 正如你所说的那样,这是一个错误,我重置了模拟器(iOS 模拟器 > 重置内容和设置...),它显示了我的自定义键盘,但标题错误。我选择了“AlakiKeyboard”,它显示“English”作为名称。如果您提交前两个 cmets 作为答案,我会将其标记为可接受的答案。谢谢
标签: ios objective-c ios8 xcode6 ios-app-extension