开发者

Detect when the transition of a new pushed view ends

开发者 https://www.devze.com 2023-03-05 19:01 出处:网络
In an application built on top of Three20, how can I detect, after a new view is pushed, when the transition ends?

In an application built on top of Three20, how can I detect, after a new view is pushed, when the transition ends?

If I开发者_JS百科 use viewDidLoad, it's call when the view is loaded into memory, but the transition may has not started yet.


Have you tried using viewDidAppear:(BOOL)animated {?


Use

viewDidAppear:(BOOL)animated;


If you've used UIView animation methods (pre-iOS4), you can use +setAnimationDidStopSelector: or if you've used the new block-based animation methods, you can use any of the methods that allow you to set a completion handler like this.

0

精彩评论

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