cellForRowAtIndexPathではなくwillDisplayCellで設定する必要があるみたいです。
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
cell.backgroundColor = [UIColor purpleColor];
}
cellForRowAtIndexPathではなくwillDisplayCellで設定する必要があるみたいです。
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
cell.backgroundColor = [UIColor purpleColor];
}