swift hidesBottomBarWhenPushed 设置界面

1.
一级界面(rootViewController)

        self.hidesBottomBarWhenPushed = true

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

2.

二级界面 
        self.hidesBottomBarWhenPushed = true

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

  

猜你喜欢

转载自www.cnblogs.com/qingzZ/p/10413583.html