Setting space between some items in stack view

后端 未结 6 529
悲&欢浪女
悲&欢浪女 2021-02-04 23:35

In Interface Builder, I use a horizontal UIStackView and want to place the items as this :

   xx   xx   xx

every x symbolize an item. Item1 and

6条回答
  •  故里飘歌
    2021-02-05 00:41

    Swift 4 : If you want for example set a space after the first subview :

    stackView.setCustomSpacing(30.0, after: stackView.subviews[0])
    

提交回复
热议问题