簡體   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