方法一(推荐):一级界面push的时候设置,子页面无需设置

            let vc = JYMyCommissionController()
            vc.hidesBottomBarWhenPushed = true
            self.navigationController?.pushViewController( vc, animated: true)

  

 

 

 方法二:设置两个界面,

1.
一级界面(rootViewController)

        self.hidesBottomBarWhenPushed = true

            self.navigationController?.pushViewController(JYMyCommissionController(), animated: true)
        self.hidesBottomBarWhenPushed = false

2.

二级界面 
        self.hidesBottomBarWhenPushed = true

            self.navigationController?.pushViewController(JYMyCommissionController(), animated: true)
之后 所有子页面不需要设置了

  

 

posted on 2019-02-21 16:44  懂事长qingzZ  阅读(314)  评论(0编辑  收藏  举报