0

I have an app that only works in Landscape mode and am using storyboard to layout views. The problem is using Trait collections/size classes the view is by default shown in portrait mode that makes it difficult to layout. I am unable to find anyway to change the frame of main UIView so that it shows in landscape. Any ideas?

Deepak Sharma
  • 5,577
  • 7
  • 55
  • 131

1 Answers1

0

In Xcode 8, you can select the orientation of the view controllers in the storyboard by clicking the device family and size class button on the bottom of the Interface Builder screen when you have the Storyboard open.

Device family and size classes button

[1]


This exposes the device configuration pane in which you can select different screen sizes and orientation.

Device configuration pane

[2]

Omal Perera
  • 2,971
  • 3
  • 21
  • 26
RvdB
  • 868
  • 7
  • 7