I am inserting/deleting table cell using insertRowsAtIndexPaths/deleteRowsAtIndexPaths wrapped in beginUpdates/endUpdates. I am also using beginUpdates/endUpdates when adjusting rowHeight. All these operations are animated by default.
How can I detect that animation has ended when using beginUpdates/endUpdates?
What about this?
This works because the tableView animations use
CALayeranimations internally. That is, they add the animations to any openCATransaction. If no openCATransactionexists (the normal case), then one is implicitly began, which is ended at the end of the current runloop. But if you begin one yourself, like is done here, then it will use that one.