Ios 如何设置表格视图单元格和删除背景contentView的白色之间的空间

Ios 如何设置表格视图单元格和删除背景contentView的白色之间的空间,ios,objective-c,uitableview,Ios,Objective C,Uitableview,如何删除单元格和角之间的白色我在容器视图中使用了透明颜色,但没有删除白色 我在表视图中使用自定义单元格。 cell.contentView.backgroundColor=[UIColor clearColor]; cell.contentView.layer.cornerRadius=10 将UITableView样式分组。并将每个单元格设置在不同的区域中。然后在下面添加代码: - (float)tableView:(UITableView *)tableView heightForFoote

如何删除单元格和角之间的白色我在容器视图中使用了透明颜色,但没有删除白色

我在表视图中使用自定义单元格。 cell.contentView.backgroundColor=[UIColor clearColor];
cell.contentView.layer.cornerRadius=10

将UITableView样式分组。并将每个单元格设置在不同的区域中。然后在下面添加代码:

- (float)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
    //this is the space
    return 50;
}
要在单元格之间更改颜色,应执行以下操作:

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
    UIView *v = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.tableView.frame.size.width, 5)];
    v.backgroundColor = [UIColor whiteColor];
    return v;
}

如果您想更改背景颜色,您应该在cell.contenrView.backgroundColor中设置所需的颜色。

谢谢您……但我只要求单元格背景的颜色