How Do You Hide Your Top Navigation Bar?

Navigation bar reappears on the welcome screen. How to hide it permanently?

  • I am working on an app for iPad. Here is the flow: Welcome Screen -> Home screen -> then home screen navigates to rest of the screens. I have made the navigation bar hidden in the welcome screen. But it is available on rest of the screens. On home screen, the navigation bar has a button which takes user back to the welcome screen. When user presses that button and goes back to the welcome screen, the navigation bar appears on the welcome screen. When app is launched there is no navigation bar on welcome screen, but while the app is running and the user goes back to the welcome screen, navigation bar appears. I want to permanently hide it from the welcome screen. I don't want it to appear on the welcome screen at any stage. In the viewDidLoad of welcome screen, the navigation bar is hidden. Then why it appears when user goes to the welcome screen while the app is running? How can I remove it?? any help will be highly appreciated. Thanks and regards PC

  • Answer:

    The best solution here may be to put self.navigationBar.hidden = YES; in the -viewWillAppear: method of the UIViewController where you wish to have the bar perpetually hidden.

Prateek Chaubey at Stack Overflow Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.