如何设置UITableViewCell背景色

2025-04-25 14:05:08
推荐回答(1个)
回答1:

- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
cell.backgroundColor = [UIColor redColor];
}