简体   繁体   English

无法在故事板中设置视图

[英]fail to set view landscape in storyboard

I am trying to develop a landscape app on iOS, at the first step I want to set the view to landscape so I can design the view much easily. 我正在尝试在iOS上开发一个横向应用程序,第一步我想将视图设置为横向,这样我就可以很容易地设计视图。

But after I chose the orientation->landscape nothing happened in storyboard, I checked some tutorial video, all their storyboard view change to landscape right after set it. 但是在我选择了orientation-> landscape之后,在故事板中没有发生任何事情,我检查了一些教程视频,所有的故事板视图在设置后立即改变为横向。

Anyone know what causes the failure of setting landscape? 有谁知道造成景观失败的原因是什么?

My Xcode is quite weird for several problems, I tried to reinstalled it but problems still existed. 我的Xcode对于几个问题非常奇怪,我试图重新安装它,但问题仍然存在。

I suppose, you are using size classes in xcode 6. If so then change your size classes to Regular Compact in storyboard. 我想,你在xcode 6中使用了大小类。如果是这样,那么在storyboard中将你的大小类改为Regular Compact。 Or else turn off size classes and Autolayout. 或者关闭大小类和Autolayout。

Click on file inspector(leftmost button in the tab) and check whether autolayout and size classes are turned on. 单击文件检查器(选项卡中最左侧的按钮)并检查是否已打开autolayout和size类。

Did you try changing the size from default "inferred" to lets say "ipad air" 您是否尝试将默认“推断”的大小更改为“ipad air”

and then try switching between potrait and landscape from simulated matrix . 然后尝试从模拟矩阵切换potrait和landscape。

尝试关闭AutoLayout

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM