Created
May 20, 2015 15:02
-
-
Save k06a/fbef6dd0a1862696b78c to your computer and use it in GitHub Desktop.
Show/hide navigation bar on push/pop
This file contains 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
- (void)viewWillAppear:(BOOL)animated | |
{ | |
[super viewWillAppear:animated]; | |
[self.navigationController setNavigationBarHidden:NO animated:YES]; | |
} | |
- (void)viewWillDisappear:(BOOL)animated | |
{ | |
[super viewWillDisappear:animated]; | |
if (self.isMovingFromParentViewController) | |
[self.navigationController setNavigationBarHidden:YES animated:YES]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment