我试过了
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
UIView *headerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.frame.size.width, 100)];
headerView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
headerView.opaque = NO;
headerView.backgroundColor= [UIColor blackColor];
return [headerView autorelease];
}
但是如何为这些部分设置BackgroundImage?
非常感谢