To change the the status bar color in all the Viewcontrollers, add this to your info.plist
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleLightContent</string>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
then clean and run the build.
For setting status bar color specific to ViewControllers add the following in the info.plist
<key>UIViewControllerBasedStatusBarAppearance</key>
<true/>
And in the viewDidLoad method of ViewController call this method :
[self setNeedsStatusBarAppearanceUpdate];
And the add the following method in ViewController :
- (UIStatusBarStyle)preferredStatusBarStyle
{
return UIStatusBarStyleLightContent;
}
Cheers :]