开发者

UITableview resize animated

开发者 https://www.devze.com 2023-02-03 01:55 出处:网络
I want to resize a TableView animated. I have the following structure TabBarController --> NavController

I want to resize a TableView animated.

I have the following structure

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

I tried out this snippet in my ViewController, but unfortunately it removes the NavController and shows the last view of the NavController. The resize it self doesn't work.

[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.5];
tableView.frame = CGRectMak开发者_Go百科e(320, 254, 0, 309);
[UIView commitAnimations];

I'm thankfull for every hint.

cheers endo

EDIT / SOLVED: I had the animation for testing purposes in the didReceiveMemoryWarning of my view. shame on me, because it works now ^^


I had the animation for testing purposes in the didReceiveMemoryWarning of my view. shame on me, because it works now ^^

0

精彩评论

暂无评论...
验证码 换一张
取 消