简体   繁体   English

XCode无法修复情节提要中的横向布局

[英]XCode can't fix landscape orientation layout in storyboard

I have a simple linear chain of UIViewControllers. 我有一个简单的线性UIViewControllers链。 The first one has a show segue to a NavigationViewController, then it goes on the same way with all the others. 第一个显示对NavigationViewController的显示序列,然后与其他所有显示序列相同。

When I switch from wCompact-hRegular to wRegular-hCompact to fix the landscape layouts the first viewcontroller doesn't allow me to do anything. 当我从wCompact-hRegular切换到wRegular-hCompact来修复横向布局时,第一个viewcontroller不允许我执行任何操作。 The tree diagram at the left side of the storyboard screen shows the views but they are not written in black. 故事板屏幕左侧的树形图显示了视图,但视图不是用黑色书写的。 They are transparent. 它们是透明的。 Even if I select them and put the coordinates or dimensions nothing happens. 即使选择它们并放置坐标或尺寸,也不会发生任何事情。 There are only a button and a label. 只有一个按钮和一个标签。 Others Controllers are all ok, they can be fixed. 其他控制器都还可以,可以修复。 What is happening to the first one? 第一个发生了什么事?

With XCode 6 you can add views, that are only visible in the selected size class (fe Compact + Compact). 使用XCode 6,您可以添加视图,这些视图仅在选定的尺寸级别(fe Compact + Compact)中可见。 When you change to a different size class the views are disabled. 当您更改为其他尺寸类别时,将禁用视图。 To fix this navigate to the attributes inspector and select installed for any class sizes. 要解决此问题,请导航到属性检查器,然后为任何类大小选择installed 在此处输入图片说明

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

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