it seems that I solved the problem by adding in
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
this line of code:
[cell setAccessoryType:UITableViewCellAccessoryDetailDisclosureButton]
I think this line is useless for normal cells, but restores the correct behavior of a cell with reusable cells after deletion ...
Anyway, to remove the line I used in
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
this (I think) standard line:
[tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES];
Thanks Stefano
user93446
source
share