2017-04-10 55 views
-3

如何使用swift將顏色更改爲模擬器組件?如何使用Swift將顏色更改爲IOS模擬器?

我有這個顏色在我的模擬器組成部分:

enter image description here

那麼我想這三個組件changue到白色。

+5

這個代碼中看到http://stackoverflow.com/questions/17678881/how-to-change-status-bar-text-color-in-ios-7 –

+0

選中此以及http://stackoverflow.com/questions/27124214/how-to-change-the-status-bar-color-using-ios-with-swift-on-internet-reachability – Surjeet

+0

這是另一個鏈接,可以幫助你http://stackoverflow.com/questions/18977160/change-status-bar-text-colour-from-white-ios-7-xcode-5 –

回答

0

嘗試在Viewcontroller

- (UIStatusBarStyle)preferredStatusBarStyle 
{ 
    return UIStatusBarStyleLightContent; 
} 
相關問題