如何在iOS 7上启动期间更改状态栏样式 [英] How to change status bar style during launch on iOS 7

查看:72
本文介绍了如何在iOS 7上启动期间更改状态栏样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我启动我的应用时,它会显示启动图像和黑色状态栏。如何更改它以便状态栏在启动期间亮起?我已经在我的AppDelegate didFinishLoading方法中将状态栏外观设置为light,它适用于应用程序的其余部分。

When I launch my app, it shows the launch image and a black status bar. How can I change it so the status bar is light during launch? I have set the status bar appearance to light in my AppDelegate didFinishLoading method, and it works for the rest of the app.

推荐答案

Info.plist 文件添加此键值对:

UIStatusBarStyle: UIStatusBarStyleLightContent

默认(黑色)值为 UIStatusBarStyleDefault

您还可以将 ~iphone ~ipad 附加到key。

You can also append ~iphone or ~ipad to the key.

这篇关于如何在iOS 7上启动期间更改状态栏样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆