XCode Storyboard - 视图出现在横向中?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10974953/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
XCode Storyboard - View appearing in Landscape?
提问by Ankit
Building an application which started as fairly simple, but now got pretty complicated. I am facing a strange problem. I am now using only storyboards to define all of my views. The problem I am facing is, some view-controllers in storyboard are appearing in Landscape mode and others in Portrait mode.
构建一个开始时相当简单的应用程序,但现在变得相当复杂。我正面临一个奇怪的问题。我现在只使用故事板来定义我的所有视图。我面临的问题是,情节提要中的某些视图控制器出现在横向模式下,而另一些则出现在纵向模式下。
I know it won't make a difference in final application, but it is making it hard for me to design and visualize things. Has someone else faced this problem?
我知道它不会对最终应用程序产生影响,但它使我很难设计和可视化事物。有其他人遇到过这个问题吗?
回答by MacUser
Click on the view in storyboards , click on the attributes inspector (third from the top left) in simulated metrics change the orientation to portrait
单击故事板中的视图,单击模拟指标中的属性检查器(左上数第三个)将方向更改为纵向