I am a beginner in iOS development, and the title pretty much says it.
I have a UINavigationController; I'd like it not to show the navigation bar if the user is looking at the root view, but show the navigation bar in other views.
Is there an elegant way to do this?
Use this line of code on all your view controllers [navigationController setNavigationBarHidden: YES animated:YES];
If no animation is needed you can do animated:NO
and add this code in viewDidLoad
otherwise put it viewWillAppear
or viewDidAppear
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With