Completion handler for moveRowAtIndexPath?

Is there a way to execute the method after the animation completed in time -[UITableView moveRowAtIndexPath:toIndexPath]?

Ie I would like the table view to animate the movement of the cell to the new indexPath, and then, as soon as the animation is complete, the method should be executed.

+4
source share
1 answer

I came across this and the answer was to go down to CATransaction:

[CATransaction begin];
[CATransaction setCompletionBlock:^{
     // Your completion code here
];

[table moveRow…

[CATransaction commit];
0
source

All Articles