reza_khalafi reza_khalafi - 10 months ago 209
Objective-C Question

Change status bar text color to light in iOS 9 with Objective C

How to change Status Bar text color in iOS 9.

How can I change the status bar text color to white

Please help me.

Thank you.


Using a UINavigationController and setting its navigation bar's barStyle to .Black. past this line in your AppDelegate.m file.

navigationController.navigationBar.barStyle = UIBarStyleBlack;

If you are not using UINavigationController then add following code in your ViewController.m file.

- (UIStatusBarStyle)preferredStatusBarStyle
    return UIStatusBarStyleLightContent;

And call the method to this line :

[self setNeedsStatusBarAppearanceUpdate];