在启动屏幕中隐藏状态栏

编程入门 行业动态 更新时间:2024-10-25 12:26:24
本文介绍了在启动屏幕中隐藏状态栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

默认情况下,启动屏幕提供一个状态栏.是否可以像启动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 }

更多推荐

在启动屏幕中隐藏状态栏

本文发布于:2023-11-27 12:06:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1638006.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:状态栏   屏幕

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!