i want to hide the status bar when i launch my app to view launch image that was covered by status bar. so in plist i added
Status bar is initially hidden YES
and status bar is covered. My problem is that status bar is covered always in my app, i want to hide status bar only for launch image, what can i do?
In your info.plist file itself, add another key called “Status bar is initially hidden” and set it to YES. Go to your app delegate file. Inside the method app did finish launching add a line of code. This will hide the status bar throughout the application.
To hide status bar in our iOS application using swift language we need to go through very basic steps. We can hide the status bar in two general ways. Both of these methods involve a common step. Go to Your info.plist file. Add a key called “View controller-based status bar appearance” and set its value to NO.
Hide Status Bar Icons on Your iPhone for a Cleaner Look in Apps & Wallpapers 1 Step 1: Install HideStatusBarItems#N#Open the Cydia app on your iPhone, tap the magnifying glass icon in the lower right,... 2 Step 2: Pick What Icons to Hide More ...
How To Fix A Missing iPhone Status Bar. 99% of the time, restarting your iPhone will fix this problem. On an iPhone 8 or earlier, press and hold the power button until the words “slide to power off” appear on the display. Then, swipe the power icon from left to right to turn off your iPhone.
[[UIApplication sharedApplication] setStatusBarHidden:NO animated:NO];
SOLVED
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:NO];
using this at launch of 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