拆分视图分为四个子视图与25%的宽度 [英] Split View into four Subviews with 25% width
本文介绍了拆分视图分为四个子视图与25%的宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要插入4子视图是确切25%百分比的SuperView的宽度。
所以,我的问题是如何实现与X code'S自动布局?在Android中我会用一个网格布局或LinearLayout中...
So, my question is how to achieve that with XCode's Autolayout? In Android I would use a GridLayout or a LinearLayout...
在此先感谢
推荐答案
刚刚成立的约束这样的形象,你会得到你想要的东西。
Just set your constraints like this image,you will get what you want
这是在不同的屏幕尺寸preVIEW
And this is preview in different screen sizes
这篇关于拆分视图分为四个子视图与25%的宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文