2010-09-03 2 views

Répondre

4

Malheureusement non, Mais ce que j'ai fait pour répliquer ceci, a construit un tas de boutons comme un clavier à l'intérieur de ma vue de mot de passe en utilisant l'interface constructeur. Puis lié chaque bouton à 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; 
} 
+0

jeje yep, j'ai fait la même chose! ... UIButtons avec des images d'arrière-plan pour l'état normal et en surbrillance. Merci pour la réponse – Omer

Questions connexes