Skip to content

Instantly share code, notes, and snippets.

@pratikshabhisikar
Created August 19, 2011 11:10
Show Gist options
  • Save pratikshabhisikar/1156586 to your computer and use it in GitHub Desktop.
Save pratikshabhisikar/1156586 to your computer and use it in GitHub Desktop.
Lazy Way to dismiss Modal View Controllers
// 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