gpt4 book ai didi

ios - UITableView 滚动条没有拉伸(stretch)

转载 作者:行者123 更新时间:2023-11-29 00:48:00 26 4
gpt4 key购买 nike

我有一个 UITableView,其中包含 4 个不同大小的自定义单元格。

由于某种原因,UITableViewscrollView没有拉伸(stretch)“ View 之外,然后自动返回到最大位置”,它只是停在最大位置位置并且不拉伸(stretch)。

我不知道为什么,谁能帮帮我?

谢谢!

最佳答案

如果拉伸(stretch)是指“弹跳”,那么您应该检查 bounces 属性并将其设置为 true:

tableView.bounces = true

通常它默认设置为 true,因此您可能在代码的某处禁用了它。

关于ios - UITableView 滚动条没有拉伸(stretch),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38433760/

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