一点击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];
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。