I am having multiple view controller in my application. I want to hide navigationbar in my first view controller. So I use the following code to hide the navigation
If you need to have this navigation bar hidden only in this controller, the best way is to show it in viewWillDisappear() and hide in viewWillAppear().