escoz / QuickDialog

QuickDialog - Quick and easy dialog screens for iOS
http://escoz.com/open-source/quickdialog
Other
3.07k stars 637 forks source link

Make quickDialogTableView cells editable but not deletable #656

Open kexoth opened 10 years ago

kexoth commented 10 years ago

I want to make an edit bar button for quickDialogTableView which will make the tableView editable & I accomplish that with

    [self.quickDialogTableView setEditing:YES animated:YES];

When I do that the cells are enabled for deleting & moving around.

I only want to make them deletable & not movable, but unfortonately for now there's no such option.

// QuickDialogDatasource.m

- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
    return [[_tableView.root getVisibleSectionForIndex:indexPath.section] isKindOfClass:[QSortingSection class]];
}

The only way to do that for now is to change your source code, which is not my goal since this is a feature that the quickDialogTableView should have.

Any other option to change this behaviour or it's a missing feature?

Thanks, Kex