Must I call -deleteRowsAtIndexPaths:withRowAnimation: inside an -beginUpdates -endUpdates block?
views:
119answers:
1
+1
A:
No, but you should as it avoids the table being repainted while you modify it. If you only delete a single row it's a tad overkill.
Johannes Rudolph
2010-04-14 11:13:32
so if I delete a single row I should not put it in an update block? or should I?
dontWatchMyProfile
2010-04-14 13:41:51
No, you can but you don't need to. It is advised to do it when updating multiple rows. For a single row you're fine without the update block.
Johannes Rudolph
2010-04-14 15:10:48