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:
1 |
[self performSegueWithIdentifier:@"showDetail" sender:self]; |
Dismiss it via an action like this:
1 |
[self dismissViewControllerAnimated:YES completion:nil]; |