0

I'm trying to implement UITableViewRowAnimation like this:

[self.AroundersTableView beginUpdates];
[self.Arounders removeObjectAtIndex:cellRowToDelete];
[self.AroundersTableView deleteRowsAtIndexPaths:indexPathesToDelete withRowAnimation:UITableViewRowAnimationFade];
[self.AroundersTableView endUpdates];

The row is being deleted, but there is no animation.

Any idea what is going wrong?

FS.O
  • 403
  • 6
  • 24

2 Answers2

0

Make sure you have [UIView setAnimationsEnabled:YES];

Also, check out UITableViewRowAnimationFade Not Working

neuhaus
  • 3,886
  • 1
  • 10
  • 27
0

Try this,

[self.AroundersTableView beginUpdates]; 

[self.AroundersTableView deleteRowsAtIndexPaths:indexPathesToDelete withRowAnimation:UITableViewRowAnimationFade];

[self.Arounders removeObjectAtIndex:cellRowToDelete];

[self.AroundersTableView endUpdates]; 
UIResponder
  • 785
  • 9
  • 15