一:tableview 中section 的 headerview的复用
UITableViewHeaderFooterView *headerView = [tableView dequeueReusableHeaderFooterViewWithIdentifier:SQShowSectionIdentifierId];
if (!headerView) {
headerView = [[UITableViewHeaderFooterView alloc] initWithReuseIdentifier:SQShowSectionIdentifierId];
headerView.contentView.backgroundColor = [UIColor whiteColor];
UILabel *sectionView = [[UILabel alloc] init];
sectionView.tag = 999;
[headerView addSubview:sectionView];
}
//取出对应的view。进一步操作
UILabel *sectionView = [headerView viewWithTag:999];
return headerView;
二:headerview的背景色9.3以后系统默认灰色
//需要修改UITableViewHeaderFooterView 的contentview的背景色
headerView.contentView.backgroundColor = [UIColor whiteColor];