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


If you enjoy my content, please consider supporting me on Ko-fi. In return you can browse this whole site witout any pesky ads! More details here.

Add your voice!

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