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 doanimated:NOand add this code inviewDidLoadotherwise put itviewWillAppearorviewDidAppear