交互式PopGesture的安全区域底部布局问题

时间:2019-03-11 07:40:28

标签: ios swift iphone ios11

enter image description here

我们使用了默认的tabbarcontroller。标签栏rootViewController显示标签栏和其他viewcontroller隐藏标签栏。当我们使用InteractivePopGesture时,safearea的底部布局不会更新。其他所有情况都可以正常工作

    override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)

    if navigationController?.viewControllers[0] == self {
        tabBarController?.tabBar.isHidden = false

    } else {
        tabBarController?.tabBar.isHidden = true

    }
}

1 个答案:

答案 0 :(得分:1)

//问题在与标签栏相关的视图控制器属性中

enter image description here

请按照以下步骤操作:

1)选择了标签栏prfile Viewcontroller

2)禁用“推送”中的“隐藏底部”栏

3)在您按下其他视图控制器时启用“下推”上的“隐藏底部”栏

相关问题