Question

Est-il possible de présenter un clavier comme apparaît lorsque vous définissez un mot de passe pour votre iPad?

Était-ce utile?

La solution

Malheureusement non, mais ce que je l'ai fait de reproduire c'était, construit un tas de boutons comme un clavier à l'intérieur de mon point de vue de code à l'aide de l'interface constructeur. Ensuite, chaque bouton lié à une commande qui changerait le champ de texte.

- (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;
}
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top