我試過IOS應用程序的更改風格。跟隨mehods。IOS狀態欄LigthContent
UIApplication.sharedApplication().setStatusBarStyle(UIStatusBarStyle.LightContent, animated: false)
application.statusBarStyle = UIStatusBarStyle.LightContent
而且
但我有默認樣式導致:
如何解決呢?
我試過IOS應用程序的更改風格。跟隨mehods。IOS狀態欄LigthContent
UIApplication.sharedApplication().setStatusBarStyle(UIStatusBarStyle.LightContent, animated: false)
application.statusBarStyle = UIStatusBarStyle.LightContent
而且
但我有默認樣式導致:
如何解決呢?
轉到項目目標的信息標籤,添加行:
UIViewControllerBasedStatusBarAppearance
,設定值NO
,並設置在部署信息狀態欄光
應該工作
我認爲你需要添加視圖控制器爲基礎的狀態欄的外觀在您的plist文件。這張圖片顯示。 It shows were to add lines of codes
謝謝!這是解決我的問題! –