思路:在push到目标页的时候设置self.hidesBottomBarWhenPushed = true,
注意:必须在页面还没有初始化完成设置,所以在init()方法里面设置
直接上代码:
override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
self.hidesBottomBarWhenPushed = true
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}