2017-04-10 14 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; 
} 
相关问题