跨大小类复制故事板 [英] Copy Storyboard across size classes

查看:32
本文介绍了跨大小类复制故事板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用wCompact"(紧凑宽度)和hRegular"(常规高度)大小类制作了一个故事板.现在当我更改为wAny"|wHeight"时,故事板上的所有组件都是特定的那个视图控制器消失了.我想为wAny"(任何宽度)和 hAny(任何高度")尺寸类复制相同的设计.我该怎么做?现在我没有对设计施加任何限制,只是布局.有什么办法可以复制.以下是紧凑宽度"和常规高度"中的图像好吧,我也提到了这个,为什么故事板 ui元素未显示在 xcode 6 中的 UIViewController 上?但是我想知道在 xcode6 中是否可以通过任何方式跨大小类进行复制.

I have made a storyboard using "wCompact" (Compact Width) and "hRegular" (Regular Height") size class. Now when I change to "wAny"|"wHeight" all the components of on the storyboard to be specific that view controller disappears. I want to copy the same design for "wAny" (Any Width) and hAny ("Any Height") size class. How can I do it ? Right now I have placed no constraints on the design just layout. Is there any way to copy it. Following are images in "Compact Width" and "Regular Height" Well I have referred this too, why storyboard ui elements not showing on UIViewController in xcode 6? But i wanted to know if by any means copying across size classes is available in xcode6.

推荐答案

基本上你做错了,你需要重新开始.在 Any/Any 中设计基本界面.默认情况下,您在那里所做的一切对所有特定类都是正确的.现在设计对特定尺寸类中的基本界面的修改.

Basically you've done it wrong and you need to start over. Design the basic interface in Any/Any. What you do there will by default be true for all specific classes. Now design modifications to the basic interface in specific size classes.

这篇关于跨大小类复制故事板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆