- (CGFloat)tableView:(UITableView*)tableView heightForHeaderInSection:(NSInteger)section{
if(section == 0) {
return8;//设置headerview与第一个cell之间的距离l
}
return1;//这里需要设置最小值。
}
- (CGFloat)tableView:(UITableView*)tableView heightForFooterInSection:(NSInteger)section
{
return8;//这里设置section与section之间的距离
}