¿Por qué configurar el color UITableViewCell
funciona en willDisplayCell
pero no en cellForRowAtIndexPath
?¿Por qué configurar el color de una UITableViewCell funciona en "willDisplayCell" pero no en "cellForRowAtIndexPath"?
Notas:
- Estoy usando este código para establecer el color de fondo de una celda:
[cell setBackgroundColor:[UIColor yellowColor]];
- obras cuando lo pongo en el método
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
- no funciona si pongo en
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
¿Puedes publicar tus implementaciones de 'tableView: willDisplayCell: forRowAtIndexPath:' y 'tableView: cellForRowAtIndexPath:'? – titaniumdecoy