意见对所有的iPad和iPad Pro之间的定期/定期间距? [英] Regular / Regular spacing between views for all iPads and iPad Pro?
问题描述
我最近一直在遇到不同的iPad之间定期/常规尺寸类有区别的,这是我相关的问题<一href=\"http://stackoverflow.com/questions/33958858/regular-regular-position-sizing-constraints-for-all-ipads-including-ipad-pro\">Regular /常规位置大小的限制对所有的iPad,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之间的定期/定期间距?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!