How to add Equal Spacing and equal width for button in iOS Auto layout

前端 未结 5 1981
终归单人心
终归单人心 2020-11-29 00:54

Am new to Auto layout constraints in Xcode. I have one Bottom View like UITabBar with 6 UIButtons. Without constraints I aligned those buttons with

5条回答
  •  北海茫月
    2020-11-29 01:24

    iOS 9 has a new UIKit class called UIStackView. It is very helpful in stacking up views horizontally or vertically, like the way you want. You should check out this tutorial: Raywenderlich: UIStackView Tutorial

提交回复
热议问题