2011-01-09 119 views
2

我想調整動畫的TableView大小。UITableview調整動畫大小

我有以下結構

TabBarController 
--> NavController 
---> ViewController 
----> TableViewController 

我嘗試了這個片段在我的ViewController,但不幸的是它消除了NavController並顯示NavController的最後一個視圖。調整它自己不起作用。

[UIView beginAnimations:nil context:nil]; 
[UIView setAnimationDuration:0.5]; 
tableView.frame = CGRectMake(320, 254, 0, 309); 
[UIView commitAnimations]; 

我很感謝每一個提示。
歡呼內

編輯/解決:我有用於測試目的動畫在我看來的didReceiveMemoryWarning。恥辱對我來說,因爲它現在起作用^^

+0

你在哪裏運行這段代碼?我們需要上下文:P – mackross 2011-01-09 15:12:30

回答

1

我在我的視圖的didReceiveMemoryWarning中有用於測試目的的動畫。恥辱我,因爲它現在有效^^

+0

謝謝,這是最簡單的答案! – 2011-08-28 22:02:48