I have been using
UIApplication.sharedApplication().setStatusBarStyle()
In my appDelegate and it has worked fine, but since iOS 9, this method
In info.plist, set:
View controller-based status bar appearance
boolean to NO
In app delegate's didFinishLaunchingWithOptions
, use function parameter application
(and not the [UIApplication sharedApplication]
or simillary the UIApplication.sharedApplication()
in swift) to set this like so:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
application.statusBarStyle = UIStatusBarStyleLightContent;
}