ios 找不到支持 4 型键盘的键盘 iPhone-Portrait-NumberPad
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32647090/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can't find keyplane that supports type 4 for keyboard iPhone-Portrait-NumberPad
提问by Alex Craciun
I recently upgraded to Xcode 7 and today I noticed this warning in the log when I tapped a text field and the keyboard popped up:
我最近升级到 Xcode 7,今天当我点击文本字段并弹出键盘时,我在日志中注意到了这个警告:
Can't find keyplane that supports type 4 for keyboard iPhone-Portrait-NumberPad; using 563160167_Portrait_iPhone-Simple-Pad_Default
iPhone-Portrait-NumberPad 键盘找不到支持 type 4 的键盘;使用 563160167_Portrait_iPhone-Simple-Pad_Default
I have a UITextField
that I set up in Interface Builder and configured it (also in IB) to display a number pad keyboard. I also noticed that for a normal type of keyboard this message does not appear.
我有一个UITextField
我在 Interface Builder 中设置并配置它(也在 IB 中)以显示数字键盘。我还注意到,对于普通类型的键盘,不会出现此消息。
I searched for a solution but none of what I found worked so far.
我搜索了一个解决方案,但到目前为止我发现的所有方法都没有。
The simulator settings under Simulator -> Hardware -> Keyboard
are:
下面的模拟器设置Simulator -> Hardware -> Keyboard
是:
Checked for Uses same layout as OS X
Unchecked for the other two.
选中Uses same layout as OS X
其他两个未选中。
Any ideas?
有任何想法吗?
回答by Randika Vishman
Your iOS App can't find a Numeric Keypad attached to your OS X. So you just need to Uncheck connect Hardware Keyboard option in your Simulator, in the following path just for testing purpose:
您的 iOS 应用程序找不到连接到您的 OS X 的数字键盘。因此,您只需在模拟器中取消选中连接硬件键盘选项,在以下路径中仅用于测试目的:
Simulator
->Hardware
->Keyboard
->Connect Hardware Keyboard
Simulator
->Hardware
->Keyboard
->Connect Hardware Keyboard
This will resolve the above issue.
这将解决上述问题。
I think you should see the following linktoo. It says it's a bug in the XCode at the end of that Forum post thread!
我认为您也应该看到以下链接。它说这是该论坛帖子线程末尾的 XCode 中的错误!
Hint:
And also I think this is a point where you need to give a Soft-keyboard Close
button just above the Number Keypad.
提示:
而且我认为这是您需要Close
在数字小键盘上方提供软键盘按钮的地方。