简体   繁体   English

iOS 13 状态栏隐藏在横向所有 iPhone 类型中

[英]iOS 13 status bar hidden for all iPhone types in landscape

Our app has overridden prefersStatusBarHidden in its main view controller to return false for all situations.我们的应用程序在其主视图控制器中覆盖了prefersStatusBarHidden以在所有情况下返回false However, I'm getting different results while testing iOS 13.但是,我在测试 iOS 13 时得到了不同的结果。

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 ).在 Xcode 11 (beta 6) 中使用 iOS 13 模拟器时,它们都隐藏了状态栏(这与 Apple 的UIViewController 文档一致)。

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.在 iOS 12 模拟器中,X 型号 iPhone 在横向隐藏状态栏,但其他 iPhone 类型显示状态栏。

(Also to note, the childForStatusBarHidden property is not set anywhere in the app.) (还要注意, childForStatusBarHidden属性未在应用程序中的任何位置设置。)

Can anyone else confirm this behaviour?其他人可以确认这种行为吗? If not, what might be causing this inconsistency?如果不是,可能是什么导致了这种不一致?

I wonder if your Settings are like this: The TARGETS - General - Device Orientation include Portrait, LandScpaeLeft, Landsscape Right.我想知道您的设置是否是这样的:目标 - 常规 - 设备方向包括纵向、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.如果它已经在线,我还没有找到解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM