我想插入4个Subviews,其中 SuperView的确切宽度为25%。
所以,我的问题是如何使用XCode的Autolayout实现这一目标?在Android中我会使用GridLayout或LinearLayout ......
提前致谢
答案 0 :(得分:4)
答案 1 :(得分:1)
答案 2 :(得分:0)
您应该使用ios9和xcode 7.0中引入的UIStackView
这是教程的一个链接,看起来像是android中的线性布局
http://code.tutsplus.com/tutorials/ios-9-getting-started-with-uistackview--cms-24193
还有很多其他方法,因为这是新方法,它有助于减少工作和时间,所以你应该使用它。谢谢