隐藏了所有iPhone类型的iOS 13状态栏 [英] iOS 13 status bar hidden for all iPhone types in landscape

查看:110
本文介绍了隐藏了所有iPhone类型的iOS 13状态栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的应用在其主视图控制器中已覆盖 prefersStatusBarHidden ,以在所有情况下返回 false .但是,在测试iOS 13时,我得到了不同的结果.

Our app has overridden prefersStatusBarHidden in its main view controller to return false for all situations. However, I'm getting different results while testing iOS 13.

在Xcode 11(测试版6)中使用iOS 13模拟器时,它们都会隐藏状态栏(这与Apple的

When using the iOS 13 simulators in Xcode 11 (beta 6), they all hide the status bar (this is consistent with Apple's UIViewController documentation).

使用iOS 12模拟器,X型iPhone会在横向中隐藏状态栏,而其他类型的iPhone会显示状态栏.

With the iOS 12 simulators, the X-model iPhones are hiding the status bar in landscape, but the other iPhone types are showing the status bar.

(还要注意,未在应用程序中的任何位置设置 childForStatusBarHidden 属性.)

(Also to note, the childForStatusBarHidden property is not set anywhere in the app.)

还有其他人可以确认这种行为吗?如果不是,可能是什么原因导致这种不一致?

Can anyone else confirm this behaviour? If not, what might be causing this inconsistency?

推荐答案

我不知道您的设置是否是这样的:TARGETS-General-Device Orientation包括Portrait,LandScpaeLeft,Landsscape Right.

I wonder if your Settings are like this: The TARGETS - General - Device Orientation include Portrait, LandScpaeLeft, Landsscape Right.

如果您的应用尚未在应用商店中,则可以删除横向支持.如果它已经在线,我还没有找到解决方案.

If your app isn't already in the app store, you can remove landscape support. If it's already online, I haven't found a solution yet.

这篇关于隐藏了所有iPhone类型的iOS 13状态栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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