如何修改UITableView中SectionTitle的背景色

UITableViewDelegate中有

- (UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {

    UIView *headerView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, 30)] autorelease];
    headerView.backgroundColor = applicationDelegate._app.theme.titleBlockBgColor;
    return headerView;
}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章