Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show status bar initially hidden from plist iphone

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?

like image 902
Jayyrus Avatar asked Dec 16 '11 09:12

Jayyrus


People also ask

How do I hide the status bar in an Android app?

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.

How to hide status bar in iOS app using swift language?

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.

How to hide status bar icons on iPhone for cleaner look?

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 do I fix the status bar on my iPhone?

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.


2 Answers

[[UIApplication sharedApplication] setStatusBarHidden:NO animated:NO];
like image 50
Niko Avatar answered Nov 15 '22 08:11

Niko


SOLVED

[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:NO];

using this at launch of app :)

like image 32
Jayyrus Avatar answered Nov 15 '22 07:11

Jayyrus