How to hide parent tabbar when pushing controller in navigationController

后端 未结 8 649
耶瑟儿~
耶瑟儿~ 2020-12-14 07:06

I have an application with a tab bar controller and each view contains a navigation controller. My MainWindow looks as follows: Image here http://www.freeimagehosting.net/im

8条回答
  •  臣服心动
    2020-12-14 07:47

    Use property hidesBottomBarWhenPushed in the controller that you want to hide.

    For hide, all controllers put into prepare for segue

    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        segue.destination.hidesBottomBarWhenPushed = true
    }
    

提交回复
热议问题