Constraint to bottom layout guide with TabBar issue

前端 未结 2 1608
猫巷女王i
猫巷女王i 2021-01-04 10:53

I have UITabBarController based iPad app with containerView on the first tab. The containerView has standard vertical spacing to bottom layout guide. When I tap on the secon

2条回答
  •  时光说笑
    2021-01-04 11:50

    Nicolas Bonnet's answer of unchecking "Extend Edges Under Bottom Bar" didn't work for me. In my case the problem seemed to be that I was setting the bottom constraint of my view equal to the Bottom Layout Guide.

    So, instead, I aligned the bottom edges of my button and the ViewController's view as shown below.

    Select both your view to pin to the bottom and the main view:

    Then tap the Align selection menu at the bottom right of Interface Builder and select Bottom Edges:

提交回复
热议问题