-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
  • 37,241
  • 25
  • 195
  • 267
TechChain
  • 8,404
  • 29
  • 103
  • 228

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,394
  • 2
  • 28
  • 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
  • 34
  • 5