如何在弹出窗口内显示键盘?,iPad密码锁定样式
-
30-09-2019 - |
题
当您为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;
}
不隶属于 StackOverflow