- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
//獲取indexPath
NSIndexPath *indexPath = [[NSIndexPath alloc]initWithIndex:section];
if (0 == indexPath.section) {//第一組
return 20;
}else
return 15;
}
- (CGFloat)tableView:(UITableView*)tableView heightForFooterInSection:(NSInteger)section{
return 10;//設(shè)置尾視圖高度
}