修改(table的section与上一个section的间距)section header背景颜色

- (UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section

{

    UIView *headerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, 30)];

    [headerView setBackgroundColor:[UIColor clearColor]];

    return headerView;

}

//不要忘记从委托添加这段代码,,相对于table section的高度(table的section与上一个section的间距)。
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
return 15;
}
原文地址:https://www.cnblogs.com/2015-adong/p/5684638.html