UITableViewCell
の色をwillDisplayCell
に設定しますが、cellForRowAtIndexPath
に設定しないのはなぜですか?UITableViewCellの色を「willDisplayCell」では設定できますが、「cellForRowAtIndexPath」では設定できません。
注:
- 私は、セルの背景色を設定するには、このコードを使用しています:私は方法
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
- に入れたときに私が入れた場合
[cell setBackgroundColor:[UIColor yellowColor]];
- 作品は動作しません。
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
'tableView:willDisplayCell:forRowAtIndexPath:'と 'tableView:cellForRowAtIndexPath:'の実装を投稿できますか? – titaniumdecoy