How to trigger a Modal Segue

- by

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];

Add your voice!

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