swift tabbar 跳转子页面时隐藏方法

//注意:在push后设置self.hidesBottomBarWhenPushed=NO;
//这样back回来的时候,tabBar会恢复正常显示。
let detailCtrl = ScanViewController(nibName: "ScanViewController", bundle: nil);
        //detailCtrl.hidesBottomBarWhenPushed = true
        self.hidesBottomBarWhenPushed = true
        self.navigationController?.pushViewController(detailCtrl, animated: true)
        self.hidesBottomBarWhenPushed = false
posted @ 2017-08-03 12:06  齐亚宗  阅读(514)  评论(0编辑  收藏  举报