Xcode 6 Limitations with Button Images

Hi guys, I am creating an application that has a panel with 11 images.

1 is the background, 1 is the lines that divide the button, and 9 is the image button.

I tried to assign automatic constraints several times, but I also tried manually, and I cannot figure out how to properly configure the constraints. I also accompanied many textbooks. If you look at the image below, you will see that the button / images, especially on the iPhone 4, are weird!

enter image description here

+4
source share
2 answers

you need to make a view containing a button ... after that just follow the image below to set the view constraints ... You have 9 images ... I just gave you a demo with 7 buttons

enter image description here

4 ... ... ...

enter image description here

...

enter image description here

+8

UIView UIView. .

0

Source: https://habr.com/ru/post/1598693/


All Articles