首页 > 编程语言 > 详细

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

时间:2017-08-03 13:36:16      阅读:253      评论:0      收藏:0      [点我收藏+]
//注意:在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

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

原文:http://www.cnblogs.com/qiyazong/p/7278980.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!