Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 6 and Constraints - Greyed out equal widths option

I am trying to use the constraints on xcode 6 with side-by-side objects but when I use the "add missing constraints" option, all of the elements resize properly except the side-by-side buttons where they stay the same size but one gets pushed out of the view.

Image of View

And I think I need to use the "Equal heights" constraint but it is greyed out :(

Greyed out constraint Image

Can anyone help?

like image 892
james3211 Avatar asked Feb 24 '15 20:02

james3211


People also ask

How do you add equal width constraints?

To add equal width constraint, you will need to select both views by command clicking on both of them. Then click on the pin menu and the previously grayed out Equal Width checkbox is now available. Click on that and click Add 1 Constraint.


1 Answers

You need to right-click drag from one of the objects to the other one to enable that option (It needs to know what heights should be equal)

like image 120
davbryn Avatar answered Nov 10 '22 00:11

davbryn