是否可以按照为 ipad 设置密码时显示的方式显示键盘?
不幸的是没有,但我所做的复制是,使用界面生成器在我的密码视图中构建了一堆按钮,例如键盘。然后将每个按钮链接到一个可以更改文本字段的命令。
- (IBAction) button9_clicked:(id) sender{
if ([self textField:theTextField shouldChangeCharactersInRange:range replacementString:@"9"]){
self.theTextField.text=[self.theTextField.text stringByAppendingString:@"9"];
range.location = self.theTextField.text.length;
}
else
range.location = self.theTextField.text.length;
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)