I have a custom confirmation alert dialog box on top of the regular cell deletion confirmation for some cells, it's sort of doing a double confirmation for these cells. (This is after user enters editing mode, not by swipe) So, if the user clicks 'OK' to confirm in my custom confirmation dialog. It's supposed to do the actual deletion, which behaves well since the whole cell will be removed from the TableView. However, if the user clicks 'Cancel' The cell does not get deleted it remains in the table and remain in "Cancellation Confirmation Mode". This is not what I want, I want it to be reverted back to the 'Normal cell editing mode". I've searched through apple documentation, it only provides a "showingDeleteConfirmation" readonly method. It doesn't really have a way to revert this mode back to cell editing. I can do this to hack it:
[cell setEditing:NO animated:NO];
[cell setEditing:YES animated:NO];
I can't enable animation here because it will look bad it's temping to go back to non-editing mode to editing mode again. But the animation transition is not quite smooth without it. IS THERE ANY CLEANER WAY TO DO THIS?
for anyone else still looking for this, this does a smooth, opposite transition for a single cell:
[tableView setEditing:FALSE animated:TRUE];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With