简体   繁体   中英

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?

您需要右键单击从一个对象到另一对象的拖动以启用该选项(它需要知道什么高度应该相等)

You can also:

  1. In the Xcode document outline use Shift or Command and click on the items you want to add the equal size constraint to.
  2. Then click the Pin button.
  3. You can now click the checkbox to add 'equal width' or 'equal height' constraints.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM