ios - Xcode UITableView 自定义单元 xib 图像高度

标签 ios xcode uitableview

请查看这张照片并帮助我,这对我来说非常重要。非常感谢

enter image description here

最佳答案

我会为此实现 heightforRowAtIndexPath,简而言之:

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
//first image height must be fetched for the ccurrent image using indexpath.row...

//Then use the height to set cell height:
    return imageHeight;
}

关于ios - Xcode UITableView 自定义单元 xib 图像高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22217765/

相关文章:

ios - MKCoordinateRegionMakeWithDistance 的反函数?

ios - swift 函数式计算

xcode - 如何下载 Xcode DMG 或 XIP 文件?

swift - 立即重新加载 TableView (Parse + Swift)

ios - Swift json 解析 fatal error : unexpectedly found nil while unwrapping an Optional value

ios - 在 swift 中以不同方式处理 printf

c++ - 在 xcode 10 上找不到 stdlibc++ header 错误

ios - 如何设置在部分表格 View 上选择的单元格的背景颜色

ios - UITableView 上的某些单元格不会自动调整大小

ios - 与解析异步