
我们已经使用了默认的tabbarcontroller。当我们使用interactivePopGesture时,Tabbar、rootViewController display、tabbar和其他视图控制器隐藏的tabbar.The安全区域的底部布局不会更新高度。所有其他情况下,它都工作正常
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
if navigationController?.viewControllers[0] == self {
tabBarController?.tabBar.isHidden = false
} else {
tabBarController?.tabBar.isHidden = true
}
}发布于 2019-03-12 14:40:42
//问题在与选项卡栏相关的视图控制器属性中

请按照以下步骤操作:
1)选择您的选项卡栏prfile视图控制器
2)关闭推流隐藏底杠
3)当您在其他视图控制器上推送时,启用推送隐藏底栏
发布于 2019-03-11 16:32:59
// i was solved this issue like that in appdelegate when iam check user already login then i will remove removeGestureRecognizer from view
let mainStoryboard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
let loginPageView = mainStoryboard.instantiateViewController(withIdentifier: "CustomTabVCID") as! CustomTabVC
let rootViewController = self.window!.rootViewController as! UINavigationController
rootViewController.view.removeGestureRecognizer(rootViewController.interactivePopGestureRecognizer!)
rootViewController.pushViewController(loginPageView, animated: true)
// for bottom bar
// Use this [![enter image description here][1]][1]
// add this line when you navigate to a ViewController hidesBottomBarWhenPushed
let vc = storyboard.instantiateViewController(withIdentifier: VC_IDENTIFIER) as! YourViewController
vc.hidesBottomBarWhenPushed = true
navigationController?.pushViewController(vc, animated: true)
// hope its work for you
or try with Main StoryBoard!
[1]: https://i.stack.imgur.com/IiVrj.pnghttps://stackoverflow.com/questions/55097173
复制相似问题