Atul Bhatia Atul Bhatia - 1 year ago 104
iOS Question

ios 7 status bar not inheriting nav bar color

I am having trouble figuring out how to get the status bar in ios 7 to use the color of my nav bar. I am using

in conjunction with the
library for the sliding menu nav.

This is how a page looks right now:

enter image description here

I want the status bar to inherit the gray color of the nav bar. How can I do this?

Answer Source

You can modify your project's Info.plist and set 'View controller-based status bar appearance' as NO

In AppDelegate you have to add

[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];

to AppDelegates didFinishLaunchingWithOptions Method.

Hopefully it will works for you.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download