Created
August 19, 2011 11:10
-
-
Save pratikshabhisikar/1156586 to your computer and use it in GitHub Desktop.
Lazy Way to dismiss Modal View Controllers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// First Lazy method. | |
ViewControllerA *controllerA = self.parentViewController; | |
[controllerA.parentViewController dismissModalViewControllerAnimated:YES]; | |
// Second Lazier Method | |
[self.parentViewController.parentViewController dismissModalViewControllerAnimated:YES]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment