1
我使用以下代码创建了自定义部分标题,但没有显示红色标签。自定义表部分标题不起作用
- (UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
UIView *headerView = [[[UIView alloc] init] autorelease];
UILabel * label1 = [[UILabel alloc] init];
label1.textColor = [UIColor redColor];
[headerView addSubview:label1];
return headerView;
}