2009-06-17 1 views

答えて

5

UIViewアニメーションを見てください。ここでは例です:

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]; 

、それを元に戻す元boundsを保存し、begin/commitAnimationsブロック内のテキストフィールドに戻ってそれを割り当てるには。

関連する問題