0
J'ai un problème avec ma suppression de cellules dans le tableau, mon programme se bloque simplement lorsque j'appuie sur le bouton Supprimer.supprimer des cellules dans la table Voir
Voici mon code pour elle:
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
if (editingStyle == UITableViewCellEditingStyleDelete) {
// Delete the managed object at the given index path
sect = [listArray objectAtIndex:indexPath.row];
[sect removeObjectAtIndex:indexPath.row];
// Update Event objects array and table view
[listArray removeObjectAtIndex:indexPath.row];
[tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES];
tableView.editing = YES;
}
}
se bloque avec quoi? EXC_BAD_ACCESS ou l'index de tableau SIGABRT hors limites ou quoi? – 0x8badf00d
Publiez la sortie de votre journal de panne. – WrightsCS
thx, problème résolu – John2