Cannot equal height to Superview in Xcode 11

前端 未结 4 2040
一生所求
一生所求 2021-01-01 20:30

I upgraded my Xcode today to 11 and just realised that Xcode doesn\'t allow me to create proportional height from a sub view to the view controller\'s root view anymore. I w

4条回答
  •  没有蜡笔的小新
    2021-01-01 20:47

    1. First do "Equal Widths " to any other UIView element .

    2. Go to Attributes inspector of the equal width contraint .

    3. Replace the Second Item with Superview.Width.

    credits: https://forums.developer.apple.com/thread/123284

提交回复
热议问题