Created
April 3, 2010 17:14
-
-
Save fredoliveira/354692 to your computer and use it in GitHub Desktop.
set this in your first UIViewController inside a NavigationController if you don't want the top bar on the first screen (which is our case on MobileGoplan)
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
// makes navigation bar disappear when this view about to come on | |
- (void) viewWillAppear:(BOOL)animated | |
{ | |
[self.navigationController setNavigationBarHidden:YES animated:animated]; | |
[super viewWillAppear:animated]; | |
} | |
// makes navigation bar appear when this view is about to go away | |
- (void) viewWillDisappear:(BOOL)animated | |
{ | |
[self.navigationController setNavigationBarHidden:NO animated:animated]; | |
[super viewWillDisappear:animated]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment