j'appelle
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
Mise subclassed UITableViewCell de cellForRowAtIndexPath
de
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
afin de changer l'accessoire cellulaire. Cela fonctionne très bien, mais j'ai fini par avoir besoin de sous-classer UITableViewCell. Quelle est la bonne façon d'obtenir le UITableViewCell sous-classé? Une alternative: UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
retourne un objet qui est
CustomCell: 0x4527ed0; baseClass = UITableViewCell
mais ne répondra pas aux
cell.customAccessoryImage;
B Alternative ne compilera pas
CustomCell *cell = [tableView cellForRowAtIndexPath:indexPath];
Merci à l'avance !
parfait, merci beaucoup –