1

tableView のセクション ヘッダーの色合いを変更するために、次のコードを実装しました。自分のビューを適用するのではなく、色合いを変更したいだけです。ただし、アプリはそれを無視しているようで、セクション ヘッダーはデフォルトの灰色で表示され続けます。私が間違っている可能性があることについての手がかりはありますか?どうもありがとう!

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
    [[tableView headerViewForSection:section] setTintColor:[UIColor brownColor]];
    return [tableView headerViewForSection:section];
}
4

1 に答える 1