objective c - Is there a way to detect when a standard iPhone View Controller push/pop animation has completed? -


for custom animations in app, can use setanimationdidstopselector: method respond event animation has finished. there similar kind of mechanism detecting animation has finished standard view controller animation transition pushes , pops?

(i.e. [self.navigationcontroller pushviewcontroller:vc animated:yes]) 

i think can try overide method:

- (void)viewdidappear:(bool)animated 

this method called after view appeared

in interface comment code:

- (void)viewwillappear:(bool)animated;    // called when view made visible. default nothing  - (void)viewdidappear:(bool)animated;     // called when view has been transitioned onto screen. default nothing 

so think if override viewdidappear , put logic here, code executed after transition finished

more in viewwillappear , viewdidappear


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -