在启动屏幕中隐藏状态栏 [英] Hide status bar in Launch Screen

查看:178
本文介绍了在启动屏幕中隐藏状态栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认情况下,启动屏幕提供一个状态栏.是否可以像启动Twitter应用程序(iOS)一样在启动屏幕中隐藏状态栏.

By default the launch screen provides a status bar. Is it possible to hide the status bar in launch screen like a Twitter app ( iOS ).

推荐答案

要最初在启动屏幕上隐藏状态栏,请在✓

To Hide Status Bar initially on launch screen, set Hide status bar check mark on ✓

OR

在您的信息列表中添加:Status bar is initially hidden YES.

In Your Info.plist add: Status bar is initially hidden YES.

以上两个选项都具有相同的影响.

The above both option having same impact.

另外

使用true

override var prefersStatusBarHidden: Bool{
    return true
}

这篇关于在启动屏幕中隐藏状态栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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