要想在工程中启动和视图中的状态栏都是白色,用下面的方法简单配置下就行。
1.设置Status Bar Style为Light.

2.在plist文件中添加 View controller-based status bar appearance = NO。

借鉴了https://www.jianshu.com/p/25e9c1a864be
要想在工程中启动和视图中的状态栏都是白色,用下面的方法简单配置下就行。
1.设置Status Bar Style为Light.
2.在plist文件中添加 View controller-based status bar appearance = NO。
借鉴了https://www.jianshu.com/p/25e9c1a864be
本文标题:iOS更改状态栏颜色
本文链接:https://www.haomeiwen.com/subject/zuvmlttx.html
网友评论