Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIStatusBar color change to white when Splash screen showing

Tags:

How to show Status Bar text color white when Splash screen is showing. I am using Default image for Splash screen for iPhone.

like image 741
Santu C Avatar asked May 18 '15 09:05

Santu C


People also ask

How can I change the color of my status bar in splash screen?

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.

How do I hide status bar in splash screen react native?

to make the StatusBar transparent, use backgroundColor={'transparent'} and translucent={true} options in StatusBar component of RN(React Native) like above.


2 Answers

It has option to select light. enter image description here

like image 117
Anni S Avatar answered Sep 25 '22 06:09

Anni S


Use the above code in didFinishLaunchingWithOptions

[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; 

//You can also use in View Controller.m file and add the following code

- (UIStatusBarStyle)preferredStatusBarStyle { return UIStatusBarStyleLightContent; } 

Also if you don't want the status bar during app launch/Splash screen go to plist and set

Status bar is initially hidden=YES

It will hide the status bar during splash screen

like image 31
Mukesh Avatar answered Sep 23 '22 06:09

Mukesh