iOS 13 status bar hidden for all iPhone types in landscape

陌路散爱 提交于 2020-12-02 18:29:03

问题


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.

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).

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.

(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?


回答1:


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.



来源:https://stackoverflow.com/questions/57590252/ios-13-status-bar-hidden-for-all-iphone-types-in-landscape

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!