2017-09-13 6 views
0

私はこれを達成したいdesign UIStackViewを使用して これは、いくつかの制約をアクティブ化および非アクティブ化することによって.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つのビュー:配置=塗りつぶし、分布=等間隔

追加情報が必要な場合はお知らせください。

関連する問題