iOS8: class size w:Regular h:Compact To w:Any h:Any

こ雲淡風輕ζ 提交于 2019-12-08 06:13:29

问题


I've made my storyboard support only w:Regular h:Compact.

Cause i needed to support all devices in landscape.

But I've figure that it's not supporting iPad that way.

When i run iPad it just a blank page.

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?


回答1:


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.

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.



来源:https://stackoverflow.com/questions/26662077/ios8-class-size-wregular-hcompact-to-wany-hany

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