Hiding the tabbar and removing the space

前端 未结 14 1706
生来不讨喜
生来不讨喜 2020-11-30 00:10

Is there a way to hide tabbar and remove that space left (around 50px) ?

I tried

self.tabBarController?.tabBar.hidden = true
self.extendedLayoutIncl         


        
14条回答
  •  天涯浪人
    2020-11-30 01:13

    I was facing the same issue and root cause was BOTTOM CONSTRAINT

    Make sure you set the bottom constraint of your bottom most view in the main view hierarchy with SUPERVIEW, NOT "SAFE AREA"

    Hope this helps someone..

提交回复
热议问题