Enabling Swipe-to-delete while showing reorder controls on UITableView
问题 I am looking to allow reordering of UITableViewCell s and deleting via swipe to delete, but not via the red delete circle. - (void)loadView { [super loadView]; [table setEditing:YES animated:NO]; } - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if (editingStyle == UITableViewCellEditingStyleDelete) { // Perform delete here } } - (void)tableView:(UITableView *)tableView moveRowAtIndexPath: