-(UIView*)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
UIView *headerView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, KWIDTH, 40)];
headerView.backgroundColor = [UIColor whiteColor];
UILabel *headerTitle = [[UILabel alloc]initWithFrame:CGRectMake(11, 10, KWIDTH, 20)];
headerTitle.textColor = FONTCOLOR;
headerTitle.font = BIGFONT;
[headerView addSubview:headerTitle];
UIView *line = [[UIView alloc]initWithFrame:CGRectMake(0, 39.5, KWIDTH, 0.5)];
line.backgroundColor = GRAYGLOGBALCOLOR;
[headerView addSubview:line];
if (section == 1) {
headerTitle.text = @"物品信息";
return headerView;
}else if (section == 2){
headerTitle.text = @"物流信息";
return headerView;
}
return nil;
}