I have found many links for Status Bar issue in iOS 7 bt none of them helped much.
The issue is my application runs well in iOS6 but when I try to run it on iOS7, I want the iOS7 look and feel.
The status bar gels nicely with a UIViewController
like below :
But for UINavigationController
it goes black like below :
I managed to change the text-color of the statusBar using the following code in AppDelegate :
if ([[UIView appearance] respondsToSelector:@selector(setTintColor:)]) { [[UIView appearance] setTintColor:[UIColor whiteColor]]; }
Also, my plist file has the following entry : View controller-based status bar appearance
set to NO
and my AppDelegate has :
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
I want the statusBar to take the Blue color when a NavigationController is loaded.
NOTE : I have used the following code for iOS7 support :
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000 self.edgesForExtendedLayout=UIRectEdgeNone; #endif
Don't know if this caused the issue.