Detect when the transition of a new pushed view 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.
精彩评论