How to perform Unwind segue programmatically?

tadasz picture tadasz · Sep 20, 2012 · Viewed 116.3k times · Source

Using storyboard this is very easy. You just drag the action to "Exit". But how should I call it from my code?

Answer

Vadim picture Vadim · Nov 3, 2012
  1. Create a manual segue (ctrl-drag from File’s Owner to Exit),
  2. Choose it in the Left Controller Menu below green EXIT button.

Choose it in the Left Controller Menu below green EXIT button

Insert Name of Segue to unwind.

Then,- (void)performSegueWithIdentifier:(NSString *)identifier sender:(id)sender. with your segue identify.