2017-09-13 38 views
0

的高級用法我想用UIStackView 達到這個design我知道這是可能通過激活和停用一些限制使用在.swift文件中的條件代碼/有條件限制。UIStackViews

如何使用UIStackViews實現這一目標?

以下是我想要達到的結果。

1) Space must be constant between small gray dots i.e. spacing value 12 
2) Size of the small dot is fixed i.e. width=5 for small dots and also fixed for the circle with text. 
3) I want to show #n(e.g. 6) dots for the iPhone6 between two big circles. Dots must be more or less based on the screen size. 

回答

0

像這樣:

enter image description here

  1. StackView與5次:對準=填充,分配=填
  2. 視圖1,3,5(灰色視圖) - 視圖與用文字圈自定義寬度
  3. 查看2和4 - 等寬
  4. 查看2 - stackview w對於點的6個視圖:對齊=填充,分佈=等距

如果需要任何其他信息,請讓我知道。

相關問題