Search code examples
iosios6uiviewcontrollersegueuistoryboardsegue

How to execute some code after a segue is done?


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.


Solution

  • You can use the UINavigationControllerDelegate protocol and then define:

    – navigationController:didShowViewController:animated: