Created
September 11, 2013 16:56
-
-
Save alvareztech/6526522 to your computer and use it in GitHub Desktop.
iOS: Open and close with push event ViewController. (NavigationController required)
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
// Open | |
UIViewController *viewController = [self.storyboard instantiateViewControllerWithIdentifier:@"ViewControllerStoryboardID"]; | |
// Or (but no use Storyboard) | |
CustomViewController *viewController = [[CustomViewController alloc] init] | |
[self.navigationController pushViewController:viewController animated:YES]; | |
// Close | |
[self.navigationController popViewControllerAnimated:NO]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment