2013-03-04 45 views

回答

0

您可以通過使用UIView的動畫做這樣的動畫:

[UIView animateWithDuration:0.5 animations:^{ 
    button.frame = CGRectMake(20, 10, 50, 10); // the final button frame 
}]; 
+2

應當注意的是,如果按鈕使用自動佈局,你將動畫按鈕上的約束而不是按鈕框架。 – Andrew 2013-04-28 03:12:13

相關問題