override func preferredStatusBarStyle() -> UIStatusBarStyle {
return UIStatusBarStyle.LightContent;
}
在任何ViewController中使用上面的代码将特定视图控制器的statusBar颜色设置为白色在iOS8 for me中不起作用。有什么建议吗?使用UIApplication.sharedApplication方法,在整个应用程序的Info.plist中进行必要的更改后,颜色会发生变化。
// Change the colour of status bar from black to white
UIApplication.sharedApplication().statusBarStyle = .LightContent
如何更改某些必需的和特定于的ViewControllers的状态栏颜色
https://stackoverflow.com/questions/26956728
复制相似问题