Search code examples
iosswiftiphonexcodeipad

Support different orientations on iPhone & iPad?


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.


Solution

  • 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.