Designing in landscape with Storyboards

て烟熏妆下的殇ゞ 提交于 2019-12-17 23:03:26

问题


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


回答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.




回答2:


The answer is correct, but I like a visual:




回答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.




回答4:


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



来源:https://stackoverflow.com/questions/8599195/designing-in-landscape-with-storyboards

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!