How we can set the Light Content style of Status Bar in iOS 9 for whole application?

馋奶兔 提交于 2019-11-28 10:02:20

You can save yourself a lot of work by using a UINavigationController and setting its navigation bar's barStyle to .Black. You only have to do this once; you can do it in the storyboard editor.

This will automatically turn your status bar's style to .LightContent as long as this UINavigationController is in command.

You can also used: UIApplication.shared.statusBarStyle = .lightContent. It also works in swift3.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!