I’ve got one view controller that I want to have a top bar, and another that I don’t.
They’re both in the same navigation controller.
How can I make the first view controller have no top bar, and the second view controller have a top bar?
Edit:
If I use [self.navigationController setNavigationBarHidden:YES]; then there will be a black box where the top bar used to be until the next screen completes it’s fly in. How can I avoid this?
Use this property in your first view controller:
In the second view controller, in the viewWillAppear, put below line,
In the second view controller, in the viewWillDisappear, put below line,