Mike
Mike

Reputation: 195

How to make square button with side equal 1/3 of another button width

i have two buttons. One of them in the bottom on the screen and change its width on different screen sizes. How to link width of second button to make it as 1/3 of first button width. Thanx

Upvotes: 2

Views: 480

Answers (1)

TheEye
TheEye

Reputation: 9346

Autolayout -> Ctrl-drag from button to other button in Interface Builder -> Select Equal Width -> change factor to 1/3 (or 3 depending on how the constraint is connected).

Upvotes: 3

Related Questions