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

前端 未结 5 1980
终归单人心
终归单人心 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:37

    check this image and made your constraints like below...

    RESULT:- preview in different sizes


    With Stackview (For iOS 9.0 and above)

    NOTE: If you have to make app for iOS 9 and later then UIStackView is another option for you

提交回复
热议问题