简体   繁体   中英

How do I solve this issue? (Xcode 12.4)

I finished my iPhone App and tried to submit to the App Store, but it won't get accepted because when you launch it on the iPad at the Landscape orientation, the app glitches and the UI gets messy. It does however work fine when I launch it at the Portrait orientation.

How do I solve this? Is there a way to prevent the App to rotate on the iPad? I tried changing Info.plist settings.

Here's what happens when launching at Landscape mode:

在此处输入图像描述

To turn off Landscape support...

  1. Go to the project's build, deployment, resource etc settings by clicking on the project's root in Xcode's Project Navigator window.
  2. Under the Project section, select the iOS target instance of the app.
  3. Select the General tab (if it's not already on that)
  4. Under the General tab's Deployment Info section, adjust the supported Device Orientations as needed, ie uncheck the Landscape options.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM