iOS 更改通知栏为白色

 

 

1.在 info.plist 中添加View controller-based status bar appearance,值为NO。

 

 

2.在设置状态栏的地方添加代码:

UIApplication.shared.setStatusBarStyle(.lightContent, animated: false)

 

posted @ 2017-07-08 15:11  Ficow  阅读(292)  评论(0编辑  收藏  举报