Search code examples
iossegueios6

How to perform Unwind segue programmatically?


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


Solution

    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.