Setting space between some items in stack view

后端 未结 6 511
悲&欢浪女
悲&欢浪女 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:26

    iOS 11 and above

    stackView.setCustomSpacing(32.0, after: headerLabel)
    

    For more info: Stack View Custom Spacing

提交回复
热议问题