I’m trying to find a method to catch a return from a segue to the root controller so I can run custom code that will make a decision on where to go next. I’ve tried the two methods below and they don’t do the trick as they seem to (obviously) be concerned with unwinding a segue stack. Any thoughts out there?
-(UIStoryboardSegue *)segueForUnwindingToViewController
{
}
-(BOOL)canPerformUnwindSegueAction
{
}
Just for iOS 6:
“In the controller you wish to return to, implement a method that returns an IBAction, and that takes a single UIStoryboardSegue argument:
Now, in the scene we wish to unwind, control-drag from the UI element that will trigger the return to the scene’s exit icon (the green icon in the dock). In the popup menu, select the previously defined return item.”
more here: http://www.freelancemadscience.com/fmslabs_blog/2012/9/24/advanced-storyboard-techniques.html