App runs only in landscape mode

I am sure that has been asked before, but I could not locate that in the forum.

How do I set up an app so it runs only in landscape mode ?


In your project, click on iPadScreen and iPhoneScreen
In the inspector, there are 4 on/off sliders to set which orientations are supported
(Xojo 2019, not sure about earlier)

If you dont have them, create a info.plist file, drag that into your project, and have it contain the right orientations.

Heres my portrait only section:

<key>UISupportedInterfaceOrientations</key> <array> <string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortraitUpsideDown</string> </array> <key>UISupportedInterfaceOrientations~ipad</key> <array> <string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortraitUpsideDown</string> </array>

Great. Thank you Jeff.

I am working with 2019R1.1 at the moment.

Side note. Portrait Upside down, does not work on all devices… especially the “X” series… it does works on all iPads

I will be fine, then :smiley: