简体   繁体   English

为什么Interface Builder显示“ w Any h Compact”的纵向视图?

[英]Why is Interface Builder showing Portrait view for “w Any h Compact”?

I'm trying to create an app where the layout changes if you rotate it. 我正在尝试创建一个应用程序,如果您旋转该应用程序,其布局会发生变化。 I'm trying to do this with Auto Layout and size classes. 我正在尝试使用“自动布局”和“尺寸”类来做到这一点。 My problem it that this project somehow keeps the view in Portrait, even though I have selected the size class "w Any h Compact". 我的问题是,即使我选择了大小级别“ w Any h Compact”,该项目仍以某种方式将视图保留在Portrait中。 In another project "w Any h Compact" shows up as landscape in IB. 在另一个项目中,“ w Any h Compact”在IB中显示为景观。 Both projects are set for 8.1 iPhone. 这两个项目都针对8.1 iPhone设置。 What am I missing here? 我在这里想念什么?

在此处输入图片说明

Found the problem! 发现了问题! Somebody else in my team had set the Simulated Metrics Size to iPhone. 我团队中的其他人已将“模拟度量标准大小”设置为iPhone。 Setting it to Inferred solved my problem. 将其设置为推断可以解决我的问题。

在此处输入图片说明

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

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