J'utilise les propriétés UITableView pour l'éditer. theTableView.editing = YES; theTableView.allowsSelectionDuringEditing = YES;Comment définir le type d'accessoire lorsque la vue tabel est en édition?
Cela fonctionne très bien, la ligne est sélectionnée et j'entre dans le contrôleur suivant, mais j'ai besoin d'afficher le accessoryType dans la rangée. J'utilise la ligne ci-dessous pour cela mais même si ça ne marche pas. Y a-t-il une propriété ou quelque chose qui manque pour afficher l'indiactor?
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; J'utilise le code ci-dessous pour la vue tableau.
theTableView = [[UITableView alloc] initWithFrame:tableRect style:UITableViewStyleGrouped];
theTableView.editing = YES;
theTableView.allowsSelectionDuringEditing = YES;
theTableView.delegate = self;
theTableView.dataSource = self;
theTableView.scrollEnabled=YES;
theTableView.separatorColor = [UIColor lightGrayColor];
theTableView.autoresizingMask=YES;
theTableView.allowsSelection=YES;
theTableView.sectionHeaderHeight=5;
theTableView.sectionFooterHeight=5;
[myView addSubview:theTableView];
Aidez-moi s'il vous plaît.
Thank You, Madan Mohan
Merci beaucoup –