//注意:在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
时间: 2024-10-04 22:49:42