【发布时间】:2026-01-15 22:20:04
【问题描述】:
我有一个分组表视图。我以前做过几十个表格视图,但我不确定这条线是什么:
谁能告诉我这是什么以及如何删除它?
更新:
我将问题缩小到 heightForRowAtIndexPath 委托方法。看看下面的内容。请注意,我需要一些行更高:
-(CGFloat)tableView:(UITableView *)tableViewLocal heightForRowAtIndexPath:(NSIndexPath *)indexPath {
if(indexPath.section == 0 && (indexPath.row == 3 || indexPath.row == 4 || indexPath.row == 5)) {
return tableViewLocal.rowHeight * 1.3; //If I remove the multiplier, it doesn't produce the line.
}
else
return tableViewLocal.rowHeight;
}
【问题讨论】:
标签: iphone ios uitableview uikit