2011-07-15 40 views

回答

0

您需要創建的CGRect並應用到您查看/ imageview的

這裏是一個代碼段

CGRect previousFrame = view.frame; 
[UIView beginAnimations:nil context:nil]; 
[UIView setAnimationDuration:0.5f]; 
previousFrame.size.width = 100; 
previousFrame.size.height = 100; 
view.frame = previousFrame; 
[UIView commitAnimations]; 

粘貼到您的按鈕的IBAction爲這個代碼。根據需要更改代碼。這僅僅是爲了理解這個概念。