swift状态栏的属性设置

一、设置状态栏字体颜色为白色 1.在info.plist中添加View controller-based status bar appearance ->设置为No 2.在App Dalegate写:UIApplication.shared.statusBarStyle = .lightContent 就可以了 二、设置状态栏背景颜色 1、在你对应的viewcontroller里实现下列代码:  
相关文章
相关标签/搜索