Xcode iOS 8不支持键盘类型 [英] Xcode iOS 8 Keyboard types not supported
问题描述
我有一个 UITextField
在我的 .swift中按住Ctrl键拖动为
class。 @Outlet
现在 viewDidLoad
我正在使用此代码
self.myTextField.keyboardType = UIKeyboardType.DecimalPad
当我在模拟器上启动我的应用程序并单击 UITextField
我有这个日志
找不到支持类型8的keyplane键盘
iPhone-Portrait-DecimalPad;
使用2617181025_Portrait_iPhone-Simple-Pad_Default
我没有崩溃或其他东西,但键盘不是显示。我也尝试从 Storyboard
设置它,但它是一样的。
我也注意到每当我点击 any UITextField
键盘永远不会显示(但默认键盘没有显示日志)
我正在使用Xcode-Beta 3任何人遇到这个问题?
我也有更新到最新的Xcode Beta后出现此问题。刷新模拟器上的设置,因此正在检测笔记本电脑(外部)键盘。如果您只需按:
iOS模拟器 - >硬件 - >键盘 - >连接硬件键盘
然后软件键盘将再次显示。
I have a UITextField
Ctrl-dragged as an @Outlet
in my .swift
class.
Now in viewDidLoad
i'm using this code
self.myTextField.keyboardType = UIKeyboardType.DecimalPad
When i launch my app on simulator and click on the UITextField
i got this log
Can't find keyplane that supports type 8 for keyboard
iPhone-Portrait-DecimalPad;
using 2617181025_Portrait_iPhone-Simple-Pad_Default
I have no crash or something but the keyboard is not displayed. I also tried to set it from Storyboard
but it's the same.
I also noticed that whenever i click on any UITextField
the keyboard is never displayed (but no log is shown for the default keyboard)
I'm using Xcode-Beta 3 anyone faced this issue?
I too had this problem after updating to the latest Xcode Beta. The settings on the simulator are refreshed, so the laptop (external) keyboard was being detected. If you simply press:
iOS Simulator -> Hardware -> Keyboard -> Connect Hardware Keyboard
then the software keyboard will be displayed once again.
这篇关于Xcode iOS 8不支持键盘类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!