繁体   English   中英

如何为不同大小的类别设置子视图高度限制

[英]How to set subview height constraints for different size classes

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

在此处输入图片说明

所以基本上我想将regular widthregular height乘数更改为0.25。 但是我没有找到任何选择。 所以我该怎么做。

只需转到Main.Storyboard并选择尺寸类别,即可在此处View as: iPad Pro (wR hR)并调整子视图的尺寸并更新约束。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM