2015-12-02 100 views
0

我試過IOS應用程序的更改風格。跟隨mehods。IOS狀態欄LigthContent

UIApplication.sharedApplication().setStatusBarStyle(UIStatusBarStyle.LightContent, animated: false) 
application.statusBarStyle = UIStatusBarStyle.LightContent 

而且

Xcode setting config

但我有默認樣式導致:

Result

如何解決呢?

回答

2

轉到項目目標的信息標籤,添加行:

UIViewControllerBasedStatusBarAppearance,設定值NO

,並設置在部署信息狀態欄光

應該工作

+1

謝謝!這是解決我的問題! –

1

製作確保你的info.plist也沒有設置狀態欄樣式... 你可以在狀態欄樣式值中選擇三個值。並確保狀態欄不是基於視圖控制器的。

enter image description here