How to trigger a Modal Segue

Once you’ve connected two View Controllers via a Segue in the storyboard you need to give it an identifier so we can call it in code like so:

[self performSegueWithIdentifier:@"showDetail" sender:self];

Dismiss it via an action like this:

[self dismissViewControllerAnimated:YES completion:nil];

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.