我如何只为UITableViewController启用重新排序?

jqi*_*qin 4 iphone cocoa-touch objective-c ios

我在UITableViewController中有一堆UITableViewCell.当我将编辑设置为YES时,它会自动删除每个单元格.如何禁用删除功能?我只想让用户重新排序单元格.

bry*_*mac 6

尝试:

- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:
        (NSIndexPath *)indexPath
{
    return UITableViewCellEditingStyleNone;
}
Run Code Online (Sandbox Code Playgroud)

它控制是否显示减号,加号或缺点