2016-07-12 42 views
1

我有一个场景,我必须显示四个圆圈。这些应该在屏幕的中心。我试图放置x和顶部的约束,但这不适用于iPhone 4设备。x位置的约束条件

Screenshot 1

什么限制,我应该设置使所有四个圆圈应该出现在中心为所有iPhone设备?

Screenshot 2

此外,存在在UICollectionView底部。我试图设置顶部,左侧,W和高度,但这没有奏效。

任何解决方案?

Screenshot 3

回答

1

1)嵌入在你的UIView 4圈。

2)设置的UIView约束顶部,固定的宽度,固定高度和水平中心

3)现在选择所有4圈并设置约束像顶部,前置,底部和相等的宽度。

enter image description here

enter image description here

enter image description here

enter image description here

+0

怎么样UICollectionView限制? –

+0

top,leading,trailing,bottom –

+0

获取高度错误? –