hide tab bar in view with push

前端 未结 7 1683
离开以前
离开以前 2021-02-03 22:51

I have a tabBar + NavigationViewController. The Tab bar has collection view with cells(Say view1) and with cells a push seag

7条回答
  •  误落风尘
    2021-02-03 23:16

    In my case, I use hidesBottomBarWhenPushed before I push the destination view controller.

    func showSecondViewController() {
      let vc = SecondViewController()
      vc.hidesBottomBarWhenPushed = true
      self.navigationController?.pushViewController(vc, animated: true)
    }
    

提交回复
热议问题