Designing in landscape with Storyboards

32,176

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:

enter image description here

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.

GLKView attributes

Solution 4

For Xcode 8 - Click the View As text at the bottom of the storyboard:

Storyboard to landscape

Share:
32,176
Dany Joumaa
Author by

Dany Joumaa

20 year old mobile engineer, ultra marathoner, founder of GlassWiki.

Updated on April 20, 2020

Comments

  • Dany Joumaa
    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
    Wojciech Rutkowski over 10 years
    You 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
    Amy over 10 years
    Remember 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
    Brooks Hanes almost 10 years
    You have have Size->"Inferred" AND Orientation->"Landscape" checked in Xcode 5.1.1
  • Joe C
    Joe C over 9 years
    Well 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
    Jonny over 7 years
    This is old and not valid anymore. A related function is at bottom of the main IB view.
  • Jonny
    Jonny over 7 years
    This is old and not valid anymore. A related function is at bottom of the main IB view.
  • Jonny
    Jonny over 7 years
    This is old and not valid anymore. A related function is at bottom of the main IB view.