[英]animate a view that isn't pushed
i have a view that i initialize in as my root view controller 我有一个初始化为我的根视图控制器的视图
UINavigationController *map = [[[UINavigationController alloc] initWithRootViewController:mapView] autorelease];
map.navigationBar.tintColor = NAGIVATIONBAR_TINT;
How can i animate the transition so that is seems much smooter ? 我该如何为过渡设置动画,这看起来像是更轻松了?
I'm not sure what transition you are talking about? 我不确定您在谈论什么过渡? The initial one when the view first appears? 视图首次出现时的初始位置?
Then you might want to take a look at - (void)viewWillAppear:(BOOL)animated function that is called (duh) before a view appears on screen - and start some animation there. 然后,您可能想看一下-(void)viewWillAppear:(BOOL)动画函数,该函数在视图出现在屏幕上之前被称为(duh)-并在那里开始一些动画。 There is also its sister function - (void)viewDidAppear:(BOOL)animated you might want to check out. 还有它的姐妹函数-(void)viewDidAppear:(BOOL)动画,您可能想签出。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.