iPhone hide Navigation Bar only on first page

I have the code below that hides and shows the navigational bar. It is hidden when the first view loads and then hidden when the “children” get called. Trouble is that I cannot find the event/action to trigger it to hide again when they get back to the root view….

I have a “test” button on the root page that manually does the action but it is not pretty and I want it to be automatic.

-(void)hideBar 
{
    self.navController.navigationBarHidden = YES;
}
-(void)showBar 
{       
    self.navController.navigationBarHidden = NO;
}

14 Answers
14

Leave a Comment