Вы можете изменить содержимое ячейки в 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;
}
Однако, если вы на самом деле не пытаетесь переместить ячейку в новый indexPath, этот метод не вызывается.Поэтому, если вы просто переместите ячейку на несколько пикселей вверх и вниз, вы не сможете изменить текст.Но я думаю, ты не должен так поступать.