Search code examples
iosobjective-cxcodeorientationuiinterfaceorientation

Objective-c: landscape orientation only


I want the device supports only landscape orientation. On iPhones all work fine. But iPad supports portrait too. How to fix it?

image


Solution

  • Select the iPad from Devices and check Landscape Left & Landscape Right only like this image.

    enter image description here