How to execute some code after a segue is done?

bogen picture bogen · Aug 19, 2013 · Viewed 20.9k times · Source

Is it possible in iOS 6 to know when a UIStoryboardSegue has finished its transition? Like when i add a UIStoryboardSegue from UIButton to push another UIViewController on the navigationcontroler, i want to to something right after the push-transition is finished.

Answer

New picture New · Aug 19, 2013

You can use the UINavigationControllerDelegate protocol and then define:

– navigationController:didShowViewController:animated: