如何拿到分组的tableview的每一组最后一个cell

2025-04-25 07:58:23
推荐回答(1个)
回答1:

-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
return 10.0;
}

- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section{
UIView *bgv = [[UIView alloc]initWithFrame:CGRectMake(0, 0, APPWIDTH, 10)];
bgv.backgroundColor = [UIColor colorWithWhite:.5 alpha:1];
return bgv;
}

你把你添加的line删除 加到上述bgv里面