问题
Is it posible to present a keyboard the way is shown when you set a passcode for your ipad?
回答1:
Unfortunately no, But what i did to replicate this was, built a bunch of buttons like a keyboard inside my passcode view using interface builder. Then linked each button to a command that would change the text field.
- (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;
}
来源:https://stackoverflow.com/questions/3636560/how-to-present-keyboard-inside-popover-ipad-passcode-lock-style