Hiding the tabbar and removing the space

前端 未结 14 1691
生来不讨喜
生来不讨喜 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:03

    After saw your screenshot in comment. I think you can try to set hidesBottomBarWhenPushed to true.

    hidesBottomBarWhenPushed = true
    

    Or storyboard.

    It will hide bottom bar automatically when you pushed to another view controller, and appear it again when you go back.

提交回复
热议问题