重写下面这个方法即可:
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
return 5;
}
注意:return的值不能为0,否则默认的,0.1时候最小,默认应该是30;