Xcode 6 Constraints with button images

前端 未结 2 409
没有蜡笔的小新
没有蜡笔的小新 2021-01-13 23:55

Hi guys I\'m creating an app that have a dashboard with 11 images..

1 is the background, 1 are the lines that divide the button and 9 are the button with images.

2条回答
  •  隐瞒了意图╮
    2021-01-14 00:52

    you have to take a view which contains a button....after that just follow the below image for set up view constraints...You have 9 images ...I just gave you demo with 7 buttons

    enter image description here

    and for button there is just 4 constraints...I setup for one...you just need to follow for all buttons...

    enter image description here

    And here is the result image...

    enter image description here

提交回复
热议问题