如何要求从 UITableViewCell(TTTableViewCell) 内部重新计算 UITableView(TTTableView) 的大小
我的表格视图单元格 (TTTTableViewCells) 单元格包含从互联网异步加载的图像。加载图像时,表格视图单元格会从 TTImageView 对象获取回调。
问题是在回调时我如何要求父 TTTableView 更改单元格的高度并相应地调整大小。
似乎对 heightForRowAtIndexPath 的调用仅在 tableview 绘制开始时进行。
My tableview cells (TTTAbleViewCells) cells contain images that are loaded from the internet aynchronously.When the image is loaded the the table view cell gets a callback from the TTImageView object.
Question is at the point of the callback how can i ask the parent TTTableView to change the height of the cells and resize accordingly.
It seems like the call to heightForRowAtIndexPath is only at the beginning of tableview drawing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为这是不可能的。我建议调整图像大小以适合您的单元格,而不是反之亦然
I don't think this is possible. I'd recommend resizing your images to fit into your cells, rather than vice-versa
我想我会在这里回答我自己的问题。
I guess I will answer my own question here.