How to Fix the iPhone Horizontal Screen in monaca

Asked 2 years ago, Updated 2 years ago, 74 views

I use monaca's IDE to make simple games.
I'd like to set up a fixed horizontal screen, but as stated in the official document, edit the UISsupported Interface Orientations in Monaca-AppInfo.plist, and

<key>UISsupportedInterfaceOrients</key>
  <array>
    <string>UIInterfaceOrientationLandscapeRight</string>
  </array>

I did so.
The recognition is that by erasing the vertical line (→not allowed), the setting is only compatible with the horizontal screen, but it doesn't reflect when I preview or debug the actual machine.
I wonder if this has failed to be configured.
Or can't I check it without actually building it as an iOS app?

ios monaca

2022-09-30 19:53

1 Answers

The configuration will not take effect until you build it.
The configuration is loaded when you build it.
Therefore, it is not immediately reflected in the debugger or preview.

Info.plist is a build configuration.


2022-09-30 19:53

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.