【发布时间】:2018-09-05 10:29:15
【问题描述】:
这是我在 AppDelegate 类 (Swift 4) 中编写的代码:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
UIApplication.shared.statusBarStyle = .lightContent
goToRootViewController()
UINavigationBar.appearance().isTranslucent = true
UINavigationBar.appearance().shadowImage = UIImage()
UINavigationBar.appearance().setBackgroundImage(UIImage(), for: .default)
GMSServices.provideAPIKey(googleMapApiKey)
return true
}
但我的状态栏没有显示轻量级的内容,我不知道在做什么,有什么帮助吗?
【问题讨论】:
-
你添加了.plist键来改变状态栏
-
不,我没有改变
-
然后在plist中设置
-
stackoverflow.com/questions/33103831/… 我跟着这个但还是不行
标签: ios swift uinavigationbar statusbar