In iOS8 I want to set the color of the status bar text (carrier, time, battery) to a custom color.
I've set View controller-based status bar appearance to NO and tried this code in both the individual viewcontroller, and the app delegate:
[[UINavigationBar appearance] setTintColor:color_font];
and
[self.navigationController.navigationBar setBarTintColor:[UIColor greenColor]];
In iOS8 I want to set the color of the status bar (Carrier, time, battery) to a custom color.
This is not possible right now without using private API (Customize iOS 7 status bar text Color). You can only make the status bar's text white (UIStatusBarStyleLightContent) or black (UIStatusBarStyleDefault). Check the docs:
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/#//apple_ref/c/tdef/UIStatusBarStyle
You can put a view behind the status bar (per everyone else's answer), but I don't think that's what you're asking.
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