Designing in landscape with Storyboards
Solution 1
Select the window in the storyboard, and open its Simulated Metrics property page (upper-right corner, an icon that looks like a shield next to the ruler icon). If the Simulated Metrics group is collapsed, expand it by clicking the black triangle to its left. There you will find an Orientation property; set it to Landscape
.
Solution 2
The answer is correct, but I like a visual:
Solution 3
The answers above got me the answer, but I needed another step in Xcode 5. Instead of just clicking on my GLKView, I needed to select the GLKit View Controller property below the view. Then the Orientation appeared in the Attributes Inspector.
Dany Joumaa
20 year old mobile engineer, ultra marathoner, founder of GlassWiki.
Updated on April 20, 2020Comments
-
Dany Joumaa about 4 years
Is it possible to design interfaces in landscape with Interface Builder? Others with the same question apparently were able to do so with an arrow at the top right of any selected view, but I see no such arrow. A picture would be helpful. (Note: I am using storyboards, not xibs.)
-
Wojciech Rutkowski over 10 yearsYou should click on black bar below the view, otherwise you will select the UIView instead of UIViewController (or other Controller) - for Xcode 5, 100% scale at least
-
Amy over 10 yearsRemember to expand the Simulated Metrics group. (I've been tripped up in Xcode 5 where it's not immediately obvious a group is collapsed.)
-
Brooks Hanes almost 10 yearsYou have have Size->"Inferred" AND Orientation->"Landscape" checked in Xcode 5.1.1
-
Joe C over 9 yearsWell I have no trouble finding "Orientation" and "Size" and setting them to "Landscape" and "Inferred". The trouble is that when I do that the storyboard image display doesn't spin or re-proportion itself to the Landscape aspect ratio.
-
Jonny over 7 yearsThis is old and not valid anymore. A related function is at bottom of the main IB view.
-
Jonny over 7 yearsThis is old and not valid anymore. A related function is at bottom of the main IB view.
-
Jonny over 7 yearsThis is old and not valid anymore. A related function is at bottom of the main IB view.