reordering control in UITableView

iphone, uitableview

Solution

I know this answer might be late, but I'm putting it just for people who still need it. Just implement the following methods:

- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
    return YES;
}
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath {
    return UITableViewCellEditingStyleNone;
}
- (BOOL)tableView:(UITableView *)tableView shouldIndentWhileEditingRowAtIndexPath:(NSIndexPath *)indexPath {
    return NO;
}
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
    return YES;
}
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)sourceIndexPath toIndexPath:(NSIndexPath *)destinationIndexPath{

}

Problem

I am developing a game in which I am using a `UITableView` which has custom cell (`UItableViewCell` subclass). In editing mode: Only the reordering control of the `UITableView` should show. Right now I am getting the delete and the reordering control. How to get only reordering control while editing ?

Original source