After selecting a UITableViewCell I call
[tableView deselectRowAtIndexPath:indexPath animated:YES]
inside tableView:didSelectRowAtIndexPath:
This displays a deselection animation. I'd like to know if there is any way to detect when this animation completes.
[CATransaction begin];
[tableView beginUpdates];
[CATransaction setCompletionBlock: ^{
NSLog(@"Completion code here");
}];
[tableView deselectRowAtIndexPath:indexPath animated:YES];
[tableView endUpdates];
[CATransaction commit];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With