Reputation: 195
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
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