gpt4 book ai didi

ios - 隐藏选项卡时如何拉伸(stretch) View

转载 作者:可可西里 更新时间:2023-11-01 02:16:28 25 4
gpt4 key购买 nike

我正在通过 Storyboard使用自动布局。

覆盖 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 的高度。如何将 View 拉伸(stretch)到屏幕底部?

enter image description here

enter image description here

enter image description here

最佳答案

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

关于ios - 隐藏选项卡时如何拉伸(stretch) View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38039460/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com