So, before I push the new viewController onto the stack in a specific view, I set hiddenBar to hidden. I notice that it disappears before the next screen is pressed and the slide animation happens (because I need the UIToolbar at the top),
So, question number 1: is there a way to click on the new view controller and hide the navigation bar, and not get the hide animation until the new view controller appears on the screen. It looks funny that the navigation bar is hiding and then popping a new view controller.
As soon as the new view controller appears, when I pulled it out, I set the navigation bar back
[self.navigationController.navigationBar setHidden:NO]
But when it pops up, the navigation bar no longer returns. Is it because this navigationBar is for the current navigation controller and not the new one that appears after pop music? (question number 2)
Question 3: Understanding that it does not show my navigationBar, in the viewController that appears after pop, in its viewDidAppear, I added
- (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; [self.navigationController.navigationBar setHidden:NO]; }
which shows the navigation, but the size of the view is incorrect, because it seems that when the navigation bar was hidden, the rest of the view took up empty space, and then the navigation bar was on top of the content. Is there anything I can do about this? Or am I approaching it incorrectly with push and pop? (Question No. 3).
Thanks!