问题描述
我只支持 w:Regular h:Compact.
I've made my storyboard support only w:Regular h:Compact.
因为我需要支持横向的所有设备.
Cause i needed to support all devices in landscape.
但我认为它不支持 iPad.
But I've figure that it's not supporting iPad that way.
当我运行 iPad 时,它只是一个空白页面.
When i run iPad it just a blank page.
我尝试将其转换为 any:any 但它隐藏了所有子视图.无论如何,是否可以将此类大小转换为 any:any 以支持所有内容而无需冒重做所有这些工作的风险?或者至少我需要一种方法使其仅适用于 iPad?
I tried to convert it to any:any but it hide all the sub views.Is there anyway to convert this class size to any:any to support all without risking redo all this work?Or at least I need a way to make it only for iPad?
推荐答案
首先,wRegular hCompact 适用于横向的 iPhone 6 Plus,而不是横向的 iPad:
First of all, wRegular hCompact is for iPhone 6 Plus in landscape, not iPads in landscape:
请务必查看尺码类别选择底部的说明.
Be sure to check the description at the bottom of the size class choice.
如果要转换现有元素以显示在 wAny hAny 中,请尝试选择每个元素,然后转到属性检查器并单击底部的 + 按钮,然后将其添加为任意宽度和任何高度.确保在安装任何宽度和任何高度的旁边也有复选标记.
If you want to convert existing elements to show in wAny hAny, try choosing each element, then going to the attributes inspector and clicking the + button at the bottom, then add it for any width and any height. Make sure the checkmark is there beside installed for any width and any height also.
这篇关于iOS8:班级大小 w:Regular h:Compact To w:Any h:Any的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!