gpt4 book ai didi

ios - 如何在 iOS 中以编程方式更改表格的高度

转载 作者:行者123 更新时间:2023-11-29 13:49:04 25 4
gpt4 key购买 nike

我有一个 UITableView

当我运行应用程序时,它显示的高度超出了需要。它大约是高度的 3 倍。

当显示单元格内容时,它显示在行之间,但之后是向下滚动并带有白色空白区域。

最佳答案

-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath

在上述方法中调整表格单元格高度。我假设您知道应用程序中什么点的高度应该是多少。

关于ios - 如何在 iOS 中以编程方式更改表格的高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5869089/

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