您的位置:首页 > 移动开发 > IOS开发

在xcode 6.4 中设置 ios应用的状态栏的风格

2015-08-21 09:16 549 查看
In your Info.plist you need to define View controller-based status bar appearance to any value.

enter image description here



If you define it YES then you should override preferredStatusBarStyle function in each view controller.

If you define it NO then you can set style in AppDelegate using

NSLog("设置顶部状态栏的状态")
UIApplication.sharedApplication().setStatusBarStyle(UIStatusBarStyle.LightContent, animated: false)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: