Search code examples
iosxcodeconstraintsautolayout

Constraint to bottom layout guide with TabBar issue


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 second tab and then go back to the first tab, my container moves down by 56 pts, the height of the tabBar and is then covered by the tabBar.

I made 3 screenshots to illustrate that. The third screenshot shows hidden tabBar after the jump between tabs. It looks like the bottom layout guide went down to the edge. What is going on here?

enter image description here


Solution

  • I'm not sure about what happened here, but I think that this could help:

    enter image description here

    Uncheck Under bottom bar in your UIViewController properties

    Hope that will help!