Hi All,
To change statusBar color in any view controller, you need to follow three steps:-
First - Set the UIViewControllerBasedStatusBarAppearance to YES in the .plist file.
Second - In viewDidLoad function of your UIViewController
[self setNeedsStatusBarAppearanceUpdate];
Third - In your UIViewController paste this function:-
- (UIStatusBarStyle)preferredStatusBarStyle
{
return UIStatusBarStyleLightContent;
}
Now Status bar color is changed to white color.
0 Comment(s)