如果我双击主页按钮以显示我手机上加载的所有应用程序,然后选择我的应用程序,状态栏样式将为黑色一秒钟,然后再次切换为白色。
答案 0 :(得分:1)
在您应用的info.plist
文件中,请确保添加此Status bar stytle
和View controller-basedStatus bar appearance
我发现添加这个也有助于查看相关视图。
func navigationController(navigationController: UINavigationController, willShowViewController viewController: UIViewController, animated: Bool) {
// for some reason, they thought it would be fun to switch the status bar color when this is presented, so we'll change it back.... -.-
UIApplication.sharedApplication().statusBarStyle = .LightContent
}