#技巧4# 设置statusBarStyle无效

2015/11/18 comments

新的一个APP,需要设置状态栏为白色,无论通过代码设置UIApplication.sharedApplication().statusBarStyle = .LightContent
还是直接在 TARGETS 中设置,发现都无效。

我们只需要把Info.plist中的View controller-based status bar appearance改为NO就行了,默认为YES

参考:

(iOS8) set the status bar to light content