2 guolingege guolingege 于 2016.04.18 17:13 提问

iOS键盘弹出警告"Can't find keyplane......"

一点击UITextField,logo显示区就打印如下:
Can't find keyplane that supports type 4 for keyboard iPhone-PortraitChoco-NumberPad; using 1336863583__PortraitChoco__iPhone-Simple-Pad__Default_
_我对UITextField的代码如下:
rect = CGRectMake(xx + side * 2.0, yy, ww - side * 2.2, hh);
phoneTextField = [[UITextField alloc] initWithFrame:rect];
CGFloat fontSize = hh * 0.45;
UIFont *font = [UIFont systemFontOfSize:fontSize];
phoneTextField.font = font;
phoneTextField.placeholder = @"输入手机号码";
if (kIsiPad) {
phoneTextField.returnKeyType = UIReturnKeyNext;
}
phoneTextField.keyboardType = UIKeyboardTypeNumberPad;
phoneTextField.delegate = self;
phoneTextField.clearButtonMode = UITextFieldViewModeWhileEditing;
[self addSubview:phoneTextField];

3个回答

CSDNXIAOD
CSDNXIAOD   2016.04.18 17:22
hi_chen_xingwang
hi_chen_xingwang   Rxr 2016.04.18 17:39

模拟器 Hardware->Keyboard->ConnectHardware Keyboard这一项不要勾选

tabttoo
tabttoo   2016.04.21 15:35

这个没关系的 shift + command +K 关闭打开电脑键盘(电脑键盘和模拟器键盘只能用一个)

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!