【发布时间】:2014-08-05 18:55:53
【问题描述】:
我正在尝试将我的 Swift 应用程序中的状态栏颜色更改为白色,但我碰到了一堵砖墙。我有 3 个 ViewController,每个都嵌入在 NavigationController 中(这可能是问题吗?我已经尝试将代码放在 NavigationController 类中。)我已经在我的 AppDelegate 的 didFinishLaunchingWithOptions 中尝试了以下两段代码.swift 文件,但都不起作用。
application.statusBarStyle = .LightContent
和
UIApplication.sharedApplication().statusBarStyle = .LightContent
文档要说的只是 UIBarButtonStyle 是一个 Int 并给了我这个 enum sn-p 对我的实现完全没有帮助。
enum UIStatusBarStyle : Int {
case Default
case LightContent
case BlackOpaque
}
我错过了什么?
【问题讨论】:
标签: ios swift appdelegate uistatusbar xcode6