如何检测动画何时在 UITableViewCell 取消选择行上完成



选择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];

最新更新