问题
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