如何为不同尺寸设置子视图高度限制 类

How to set subview height constraints for different size classes

这就是我设置子视图高度的方式 superview.I 已为 compact widthregular height class 设置约束为 View.height = 0.5xheight。我想为 regular widthregular height class.

设置 View.height = 0.25xheight

所以基本上我想将 regular widthregular height class 的乘数更改为 0.25。但我没有找到任何选择来做到这一点。那我该怎么做呢。

只需转至 Main.Storyboard 和 select 您的尺寸 class,此处 View as: iPad Pro (wR hR) 并调整子视图的尺寸并更新约束。