You can change the contents of a cell in tableView:targetIndexPathForMoveFromRowAtIndexPath:toProposedIndexPath:
- (NSIndexPath *)tableView:(UITableView *)tableView targetIndexPathForMoveFromRowAtIndexPath:(NSIndexPath *)sourceIndexPath toProposedIndexPath:(NSIndexPath *)proposedDestinationIndexPath { UITableViewCell *cell = [tableView cellForRowAtIndexPath:sourceIndexPath]; cell.textLabel.text = [NSString stringWithFormat:@"Moving Cell to %d %d", proposedDestinationIndexPath.section, proposedDestinationIndexPath.row]; return proposedDestinationIndexPath; }
However, unless you are actually trying to move the cell to a new indexPath, this method is not called. Therefore, if you simply move the cell a few pixels up and down, you cannot change your text. But I think you should not do this.
source share