在某个viewController 更改 状态栏 颜色
2016-03-11 本文已影响34人
fallrainy
Use needsStatusBarAppearanceUpdate
to update status bar in viewDidLoad:method of view controller
[self setNeedsStatusBarAppearanceUpdate];
Now add below method into view controller:
- (UIStatusBarStyle) preferredStatusBarStyle
{
return UIStatusBarStyleLightContent;
}