reza_khalafi reza_khalafi - 1 year ago 349
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.

Answer Source

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];
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download