Episode #108

Unwinding Segues

8 minutes
Published on February 20, 2014

This video is only available to subscribers. Get access to this video and 510 others.

UIStoryboards can help visualize your screen flow and even describe how to transition between view controllers using segues. In this episode I'll show you how you can take advantage of built-in support to unwind segues to back to where you came from. I'll show the automatic way as well as how to manually unwind a segue.

Episode Links

Further Reading

If you'd like to learn a lot more about storyboards, I highly recommend Daniel Steinberg's iOS Storyboards book.

Creating the unwind IBAction

This is sort of counter-intuitive, but you have to create the action on the controller you want to unwind to. The the method signature has to accept a UIStoryboardSegue as the argument, however the name does not matter.

- (IBAction)unwindSegue:(UIStoryboardSegue *)segue {