2016-07-12 48 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

獲取高度錯誤? –