UIStatusBarStyleLightContent Not setting battery white?

你。 提交于 2019-12-01 15:08:43

问题


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? :(


回答1:


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

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



来源:https://stackoverflow.com/questions/20410709/uistatusbarstylelightcontent-not-setting-battery-white

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!