iOS动态控制状态栏样式

//切换为default
override func viewWillAppear(_ animated: Bool)
{
    super.viewWillAppear(animated)
    UIApplication.shared.statusBarStyle = .default
}

//切换为白色
override func viewWillDisappear(_ animated: Bool)
{
    super.viewWillDisappear(animated)
    UIApplication.shared.statusBarStyle = .lightContent
}
0 0 vote
Article Rating
Subscribe
提醒
guest
0 评论
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x