【发布时间】:2016-12-22 15:00:03
【问题描述】:
我想根据设备类型设置不同的约束。 约束将设置为 b/w CollectionView 和 Label (Username)
例如。 iPhone 4 will have top: 2 left: 0 right: 0 and bottom:0
而
iPhone 6S Plus will have top: 15 left: 0 right: 0 and bottom:0
如何在 Storyboard 中设置?
【问题讨论】:
-
在 IB 中使用 size-classes,它可以为您完成这项工作。
标签: ios storyboard constraints xcode7 nslayoutconstraint