How to hide UITabBar?

前端 未结 4 1621
孤独总比滥情好
孤独总比滥情好 2020-12-02 20:21

In my app I have a tab bar. And in some views I as well have a toolbar. So when I come to those views with a toolbar it looks ugly - two bars at the bottom of the view. I th

4条回答
  •  Happy的楠姐
    2020-12-02 20:52

    I too struggled with this for a while. Hiding the tab bar is one step in the right direction, but leaves a black rectangle behind. The trick is to resize the layer that backs the UIViewController's view.

    I have written a small demo here with a solution:

    https://github.com/tciuro/FullScreenWithTabBar

    I hope this helps!

提交回复
热议问题