【发布时间】:2019-08-01 11:46:30
【问题描述】:
我们使用了默认的tabbarcontroller。 Tabbar rootViewController 显示 tabbar 和其他 viewcontroller 隐藏的 tabbar。当我们使用 interactivePopGesture 时,safearea 的底部布局不会更新高度。所有其他情况下工作正常
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
if navigationController?.viewControllers[0] == self {
tabBarController?.tabBar.isHidden = false
} else {
tabBarController?.tabBar.isHidden = true
}
}
【问题讨论】:
-
您需要设置interactivePopGesture Delegate并处理隐藏标签栏。
-
我们已经在 viewWillAppear 方法中管理了隐藏标签栏
-
我同意,你能检查它是否被触发。