-3

I want to design the iOS devices screen for landscape only. I have tried going to Attribute inspector->Orientation->Landscape but screen is always visible in portrait mode. From bottom I have tried changing the size classes but I don't get any option for designing in landscape mode only for all devices. How to do this?

Cœur
  • 34,719
  • 24
  • 185
  • 251
TechChain
  • 7,802
  • 26
  • 94
  • 211

2 Answers2

1

First this you need to set Orientation in project setting

enter image description here

change here After this Change in Attribute inspector->Orientation->Landscape

enter image description here

After doing these setups you will see your xib showing in landscape mode

enter image description here

And Also change Simulator Orientation Using key Command(Windows)+ArrowKey . Try this ..

Jogendra.Com
  • 6,228
  • 2
  • 27
  • 35
0

I think you can edit it in your my**app.plist file like this:


  1. <key>UISupportedInterfaceOrientations~ipad</key>
     <array>
      <string>UIInterfaceOrientationLandscapeLeft</string>
      <string>UIInterfaceOrientationLandscapeRight</string>
     </array>

    #

iMark
  • 24
  • 4