Home > Software engineering >  Support different orientations on iPhone & iPad?
Support different orientations on iPhone & iPad?

Time:05-26

I want to support both portrait and landscape on iPad, but only portrait on iPhone. Is it possible? What is the best way to do this?

There's only one set of "Device orientation" checkboxes in the project settings.

CodePudding user response:

You can edit the info.plist file as per your needs manually.

Notice, iPad orientation is separate from the default phone orientation.

enter image description here

CodePudding user response:

There's only one set of "Device orientation" checkboxes in the project settings.

Yes, and you use it like this:

  1. Check just iPhone.

  2. Check just portrait.

  3. Check just iPad.

  4. Check all four orientations.

  5. Check both iPhone and iPad.

I know it's confusing, but that will do what you want.

  • Related