Cannot equal height to Superview in Xcode 11

前端 未结 4 2025
一生所求
一生所求 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:38

    In "Show the File inspector" tab, under Interface Builder Document enable "Use Safe Area Layout Guides" and set the view equal width or height to "SafeArea".

    Screenshot

提交回复
热议问题