简体   繁体   中英

How to set subview height constraints for different size classes

This is how I have set subview height in regards to superview.I have set constraints for compact width and regular height class as View.height = 0.5xheight . I want to set View.height = 0.25xheight for regular width and regular height class.

在此处输入图片说明

So basically I want to change multiplier to 0.25 for regular width and regular height class. But I did not find any option to do that. So how can I do this.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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