如何显示最初隐藏在plist iphone中的状态栏 [英] How to show status bar initially hidden from plist iphone

查看:236
本文介绍了如何显示最初隐藏在plist iphone中的状态栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在启动应用程序时隐藏状态栏以查看状态栏覆盖的启动图像。所以在plist中我添加了

i want to hide the status bar when i launch my app to view launch image that was covered by status bar. so in plist i added

Status bar is initially hidden YES

并且状态栏已涵盖。
我的问题是状态栏总是在我的应用程序中被覆盖,我想只为启动图像隐藏状态栏,我该怎么办?

and status bar is covered. My problem is that status bar is covered always in my app, i want to hide status bar only for launch image, what can i do?

推荐答案

已解决

[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:NO];

在启动app时使用此功能:)

using this at launch of app :)

这篇关于如何显示最初隐藏在plist iphone中的状态栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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