I want the status bar to be displayed in both orientations in iOS 8; it's being displayed properly in iOS 7.
navigationController.isNavigationBarHidden
returns NO.
Why is iOS 8 doing this?
You can hide just a few icons or all of them for no status bar at all. To do so, open the Settings app, then scroll down and select "HideStatusBarItems." Once inside, the first thing you'll want to do is enable HideStatusBarItem by putting the toggle next to "Enable Tweak" to the on position.
Swipe down from the top-right corner of your screen to open Control Center. Tap the Portrait Orientation Lock button to make sure that it's off.
Try this
Add below code in didRotateFromInterfaceOrientation
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];
EDIT
NO NEED TO WRITE CODE IN ALL VIEW CONTROLLER
Set View controller-based status bar appearance
to NO
in plist
and add below code in root view controller's viewDidLoad
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone]; [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];
Demo project
https://www.dropbox.com/s/uumneidk4wom5md/demoStatusBar.zip?dl=0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With