Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(iOS8) set the status bar to light content

Tags:

ios

ios8

How do I set the status bar to light content in iOS8? I've seen answers for iOS7 but they are not working?

I've changed it here:

enter image description here

and on the controller itself with no luck.

Edit - added requested screenshot of status bar

enter image description here

like image 729
Deekor Avatar asked Oct 15 '14 00:10

Deekor


People also ask

How do I change the color of my status bar in Swift 4?

Open your info. plist and set UIViewControllerBasedStatusBarAppearance to false . In the first function in AppDelegate. swift , which contains didFinishLaunchingWithOptions , set the color you want.

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 IOS 13?

To change the StatusBar background colour, i have created a base class of UIViewController so that i can inherit same code in all the view controllers. Added "statusBarColorChange()" to UIViewController extension. Created Base Class and inherited in other classes. Show activity on this post.


1 Answers

  • Step 1: Head over to your project's info.plist.

  • Step 2: Change the settings for "View controller-based status bar appearance" to NO. If this key is not visible, simply add it by pressing the plus button. Should look like this.

  • Step 3: In your target, option General, In Deployment info. You should change Status Bar Style to Light (See attached image).

enter image description here

Hope this helps! enter image description here

like image 132
xNightxOwl Avatar answered Sep 29 '22 11:09

xNightxOwl