UIStatusBarStyleLightContent Not setting battery w

2020-04-04 03:11发布

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条回答
太酷不给撩
2楼-- · 2020-04-04 03:24

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

查看更多
登录 后发表回答