Copy Storyboard across size classes [duplicate]

梦想的初衷 提交于 2019-12-11 10:37:37

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/29656114/copy-storyboard-across-size-classes

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!