所有iPad和iPad Pro的视图之间的正常/正常间隔? [英] Regular / Regular spacing between views for all iPads and iPad Pro?

查看:156
本文介绍了所有iPad和iPad Pro的视图之间的正常/正常间隔?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在不同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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆