问题描述
我最近在不同iPad中遇到了常规/常规大小类别的差异,这里是我的相关问题
I've recently been encountering a difference in the regular / regular sizing class among different iPads, here's my related question Regular / Regular position sizing constraints for all iPads, including iPad pro?
Although I can use a multiplier and a constant to provide a margin, which is based on the device height, I can't now apply this approach to the spacing between views. Obviously, because I'm create a constraint between two views and can't therefore add the device height aka superview into the constraint.
I'm faced with having to add a clear / blank spacing view which is proportional height to the superview and pin my two views above and below it.
I'm looking for a different approach, is there one I'm not aware of?
Doh, all I'd need to do is follow the same approach as the other answer, and treat the top of the lower view as the top view. Then if I had problem with the top view views and lower view crashing into each other, then I could add a constraint with a priority.
这篇关于所有iPad和iPad Pro的视图之间的正常/正常间隔?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!