constrain view.bottom to superview.bottom not bottomLayoutGuide in storyboard

前端 未结 2 497
-上瘾入骨i
-上瘾入骨i 2020-12-15 09:43

In interface builder it only gives me the option of constraining my sub view to the bottom layout guide, not the superview. Because I am sometimes using the controller as a

2条回答
  •  抹茶落季
    2020-12-15 10:16

    As @Trianna Brannon pointed out, the approach in the other answer no longer works in Xcode7. In Xcode7 you have to right click your element, draw a line to the bottom until the constraint selector pops up.

    Then press ALT and now you'll get the desired Bottom constraint:

提交回复
热议问题