gpt4 book ai didi

ios - 如何让容器 View 受到 UINavigationBar 的影响

转载 作者:行者123 更新时间:2023-11-29 03:05:30 25 4
gpt4 key购买 nike

我在容器 View 内有一个 UITableViewController,该容器 View 位于具有 UINavigationController 的常规 UIViewController 内。由于 View Controller 由导航 Controller 持有,因此 TableView 会补偿 UINavigationBar,因为它位于容器 View 中,所以不应该补偿。如何防止 TableViewController 补偿导航栏?

最佳答案

因此,问题似乎并非特定于容器 View 。我在具有 UINavigationControllerUIViewController 内的常规 UITableView 中对原型(prototype)单元尝试了同样的事情,同样的事情发生了。看来这是一个自动布局问题或其他问题。因此,就解决方案而言,除了让容器或 UITableView 与 Storyboard中的 UIViewController 一样大之外,我没有真正的解决方案。

关于ios - 如何让容器 View 受到 UINavigationBar 的影响,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22825440/

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