Skip to content

Instantly share code, notes, and snippets.

@fredoliveira
Created April 3, 2010 17:14
Show Gist options
  • Save fredoliveira/354692 to your computer and use it in GitHub Desktop.
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)
// 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