开发者

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

开发者 https://www.devze.com 2023-04-12 03:50 出处:网络
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 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 开发者_JAVA百科will be highly appreciated.

Thanks and regards PC


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号