Call this method if you want subsequent insertions, deletion, and selection operations (for example,
cellForRowAtIndexPath:
and indexPathsForVisibleRows
) to be animated simultaneously. This group of methods must conclude with an invocation of endUpdates
. These method pairs can be nested. If you do not make the insertion, deletion, and selection calls inside this block, table attributes such as row count might become invalid. You should not call reloadData
within the group; if you call this method within the group, you will need to perform any animations yourself.