Skip to content

Storyboard – Unwind a Segue

From http://www.freelancemadscience.com/fmslabs_blog/2012/9/24/advanced-storyboard-techniques.html

In the controller you wish to return to, implement a method that returns an IBAction, and that takes a single UIStoryboardSegue argument:

– (IBAction)returnActionForSegue:(UIStoryboardSegue *)returnSegue {

// do useful actions here.

}

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.

via Freelance Mad Science Labs – Blog – Advanced Storyboard Techniques.