I'm creating an application and I want the status bar hidden. When I test the app, the status bar is hidden whilst the splash screen is shown, but once the app is fully loaded, the status bar reappears.
I'm using Xcode 5 and iOS 7, and have tried disabling the status bar programatically
([[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade];),
in the info.plist file, and using the attributes inspector on the .xib file. Nothing appears to work.
Any ideas?
How do I hide the status bar on Android? With a stock Android phone, press and hold Settings until System Settings appears. Select System UI Tuner > Status Bar, and turn off all the options.
On Android 11-based ONE UI 3.1Scroll down and tap “Advanced settings”. Under the Status bar, tap the “Show notification icons” setting. The default option is the 3 most recent. Select None instead.
You might experience that the status bar on the Home screen of your device disappears. This is caused by a Google™ bug, and may happen if your device fulfils the following: Software version Android™ 7.0 Nougat. Google Now™ is enabled.
Try adding the following method to your app's root view controller:
- (BOOL)prefersStatusBarHidden { return YES; }
You should add this value to plist: "View controller-based status bar appearance" and set it to "NO".
This will enable you to set the status bar to hidden mode. This sets it to a global unlike other provided answers.
UPDATE: If you want that the status bar would be hidden on splash screen don't forget to mark "Hide during application launch" on target status bar options. Also, you can add "Status bar is initially hidden" to "YES" on the plist if you don't want to do it with code inside the app.
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