I want to have 2 view controller with a navigation bar, but without the status bar.
How can I push these two controllers? Is it possible without the navigation controller?
Here is one example
There is no status bar but also with a back button.
Using a UINavigationController
(giving you the navigation bar and the back button) is a completely separate task from whether the status bar shows or not.
So use a UINavigationController
to properly and easily push and pop your view controllers as needed.
To hide the status bar, please see Hide Status Bar In iOS 8 app .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.