Ios – How to perform Unwind segue programmatically

iosios6segue

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

Best Answer

  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.