2009-06-17 6 views

Répondre

5

Regardez les animations UIView. Voici un exemple:

CGRect newBounds = myTextField.bounds; 
newBounds.size.width = NEWSIZE; //whatever you want the new width to be 

[UIView beginAnimations:nil context:nil]; 
myTextField.bounds = newBounds; 
[UIView commitAnimations]; 

le remettre, enregistrez l'original bounds et lui attribuer de nouveau au champ de texte à l'intérieur d'un bloc begin/commitAnimations.

Questions connexes