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:
and on the controller itself with no luck.
Edit - added requested screenshot of status bar
Open your info. plist and set UIViewControllerBasedStatusBarAppearance to false . In the first function in AppDelegate. swift , which contains didFinishLaunchingWithOptions , set the color you want.
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.
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.
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).
Hope this helps!
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