Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change status bar style during launch on iOS 7

When I launch my app, it shows the launch image and a black status bar. How can I change it so the status bar is light during launch? I have set the status bar appearance to light in my AppDelegate didFinishLoading method, and it works for the rest of the app.

like image 584
user1008096 Avatar asked Sep 20 '13 19:09

user1008096


People also ask

How can I change the color of my status bar?

Step 1: After opening the android studio and creating a new project with an empty activity. Step 2: Navigate to res/values/colors. xml, and add a color that you want to change for the status bar. Step 3: In your MainActivity, add this code in your onCreate method.

How do I change the color of my status bar in swift 5?

If you are using Storyboard , go to the NavigationController , select the navigationBar , click on the Attributes Inspector , then change the style . if you need light content (white status bar) set it anything except default lets say set style black And if you want dark content (black status bar) set it default .


1 Answers

To your Info.plist file add this key-value pair:

UIStatusBarStyle: UIStatusBarStyleLightContent 

The default (black) value is UIStatusBarStyleDefault.

You can also append ~iphone or ~ipad to the key.

like image 183
Tricertops Avatar answered Sep 23 '22 04:09

Tricertops