选择UITableViewCell后,我调用
[tableView deselectRowAtIndexPath:indexPath animated:YES]
内部tableView:didSelectRowAtIndexPath:
这将显示取消选择动画。我想知道是否有任何方法可以检测此动画何时完成。
[CATransaction begin];
[tableView beginUpdates];
[CATransaction setCompletionBlock: ^{
NSLog(@"Completion code here");
}];
[tableView deselectRowAtIndexPath:indexPath animated:YES];
[tableView endUpdates];
[CATransaction commit];