Can any body tell me how can I achieve this. I want to delete a row from tableview with animation. Here goes my sample code
[section0ARR removeObjectAtIndex:row];
NSIndexPath *index = [NSIndexPath indexPathForRow:section inSection:row];
[myTableVEW beginUpdates];
[myTableVEW deleteRowsAtIndexPaths:[NSArray arrayWithObject:index] withRowAnimation:UITableViewRowAnimationFade];
[myTableVEW endUpdates];
Application crashes while attempting this with this assertion Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit_Sim/UIKit-1912.3/UITableView.m:1046
but things work perfectly fine if I simply reload my table but in that case animation is not visible.
Here is a checklist
- removed item from datasource
- deleted row from tableview with animation
please help me to get rid of the crash.
Regards Ankit
numberOfRowsInSection:
? – Vidya MurthytableView:commitEditingStyle:forRowAtIndexPath:
? – Vidya Murthy