Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在自定义单元格有UIImageViews 的表格视图中显示从 URL 下载的图像。
UIImageView
现在我的要求:我想根据该单元格中该图像的高度来修复该图像视图和单元格的高度。
执行步骤如下:(我不会给你写代码,只是指导)
heightForRow
返回值
size.height+SOME_CONSTANTSOME_CONSTANT,其他内容的空间在哪里
size.height+SOME_CONSTANT
SOME_CONSTANT