如何隐藏选项卡时拉伸视图

时间:2016-06-26 14:23:48

标签: ios swift uitableview ios-autolayout uitabcontroller

我通过故事板使用自动布局。

覆盖func viewWillAppear(动画:Bool){

    //hide bottom bar
    self.tabBarController?.tabBar.hidden = true


}

// postload func
override func viewWillDisappear(animated: Bool) {
    self.tabBarController?.tabBar.hidden = false

}

enter image description here

正如你所看到的那样,黑色是tabczontroller的高度。我如何将视图拉伸到屏幕的底部?

enter image description here

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:1)

您只需布局到包含标签栏的底部布局指南。

相关问题