Ipad default-landscape not showing

I have added both images. Default-Portrait.png and Default-Landscape.png. But whenever I launch my application, only the default image for the portrait is displayed, regardless of orientation.

Why is this happening?

+3
source share
2 answers

I had the same problem and decided to add it by adding the following to the Info.plist file (from Xcode):

<key>UISupportedInterfaceOrientations</key>
<array>
    <string>UIInterfaceOrientationPortrait</string>
    <string>UIInterfaceOrientationPortraitUpsideDown</string>
    <string>UIInterfaceOrientationLandscapeLeft</string>
    <string>UIInterfaceOrientationLandscapeRight</string>
</array>
+13
source

Have you added code to replace images based on orientation? I assume that the application simply does not know what picture you want if you do not report it.

UIInterfaceOrientation Parameter

-7
source

Source: https://habr.com/ru/post/1745958/


All Articles