tableView如果實現了
-(CGFloat)tableView:(UITableView*)tableView heightForHeaderInSection:(NSInteger)section
{
returnGMLAYOUTRATE(10.0f);
}
設置cell或cell.contenView的backgroundColor只會顯示自己需要的cell的部分
如果實現了
- (UIView*)tableView:(UITableView*)tableView viewForHeaderInSection:(NSInteger)section
{
UIView*hView = [[UIViewalloc]initWithFrame:CGRectMake(0,0,DEVICE_WIDTH,GMLAYOUTRATE(16))];
hView.backgroundColor= [UIColorclearColor];
returnhView;
}
設置設置cell或cell.contenView的backgroundColor,作用的范圍還包括headerView部分。