当拖动
我的问题是如何在移动过程中更新单元格内容。我可以在释放移动句柄后更新单元格,但我需要根据其位置(
有人有想法如何实现这一点吗?
UITableViewCell
时,将调用委托方法- (NSIndexPath *)tableView:(UITableView *)tableView targetIndexPathForMoveFromRowAtIndexPath:(NSIndexPath *)sourceIndexPath toProposedIndexPath:(NSIndexPath *)proposedDestinationIndexPath
。在此委托方法中,我可以根据其proposedDestinationIndexPath
设置所选单元格的属性。我的问题是如何在移动过程中更新单元格内容。我可以在释放移动句柄后更新单元格,但我需要根据其位置(
proposedDestinationIndexPath
)在上下移动时显示更新后的值。有人有想法如何实现这一点吗?