iPad横向和纵向使用尺寸等级的不同布局 [英] iPad Landscape and Portrait different layouts with Size Class

查看:126
本文介绍了iPad横向和纵向使用尺寸等级的不同布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Size类设计具有不同布局的iPad横向和纵向屏幕。
我只能找到两个方向的w-regular和h-regular。示例:我需要使用Size Class在纵向和横向上垂直对齐2个视图

How to design iPad Landscape and Portrait screens with different Layouts using Size class. I could find only w-regular and h-regular for both orientations. Example: I need to align 2 views vertically in portrait and horizontally in landscape using Size Class

推荐答案

这似乎是Apple的意图将iPad的两个方向视为相同 - 但正如我们中的许多人所发现的那样,有非常合理的设计理由想要改变iPad Portrait与iPad Landscape的UI布局。

It appears to be Apple's intent to treat both iPad orientations as the same -- but as a number of us are finding, there are very legitimate design reasons to want to vary the UI layout for iPad Portrait vs. iPad Landscape.

但是,请参阅此答案,了解另一种调整大小类别以满足我们需求的方法:
https:/ /stackoverflow.com/a/28268200/4517929

However, please see this answer for another approach to adapting size classes to do what we need: https://stackoverflow.com/a/28268200/4517929

这篇关于iPad横向和纵向使用尺寸等级的不同布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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