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?
Asked
Active
Viewed 63 times
1 Answers
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
This exposes the device configuration pane in which you can select different screen sizes and orientation.
Device configuration pane

Omal Perera
- 2,971
- 3
- 21
- 26

RvdB
- 868
- 7
- 7