Designing in landscape with Storyboards

2019-01-21 15:29发布

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.)

4条回答
Lonely孤独者°
2楼-- · 2019-01-21 16:07

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.

查看更多
beautiful°
3楼-- · 2019-01-21 16:07

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

Storyboard to landscape

查看更多
爱情/是我丢掉的垃圾
4楼-- · 2019-01-21 16:13

The answer is correct, but I like a visual:

enter image description here

查看更多
Anthone
5楼-- · 2019-01-21 16:29

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

查看更多
登录 后发表回答