本文介绍了UIStatusBarStyleLightContent不设置电池白色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在以编程方式将我的状态栏设置为白色:

I am using programatically setting my status bar white with :

[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];

但电池图标仍为绿色?苹果示例在应用此样式时显示电池是否为白色?请参阅示例。

However the battery icon is still green? Where Apples example shows the battery being white when applying this style? See there example HERE.

知道如何将电池从绿色更改为白色吗? :(

Any idea how to change the battery from green to white? :(

推荐答案

电池充电时只有绿色。拔掉电源就可以了。

the battery is only green while its charging. unplug and it will be fine

另外,如果您在较新的iOS版本中处于低功耗模式,则电池为黄色而不是白色

as an aside, if you are on "low Power Mode" in newer iOS versions, the battery is Yellow not white

这篇关于UIStatusBarStyleLightContent不设置电池白色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 17:36