modal View controllers – how to display and dismiss

This line: [self dismissViewControllerAnimated:YES completion:nil]; isn’t sending a message to itself, it’s actually sending a message to its presenting VC, asking it to do the dismissing. When you present a VC, you create a relationship between the presenting VC and the presented one. So you should not destroy the presenting VC while it is presenting … Read more