How to implement scroll to delete using quickdialog

I am using quickdialog for the form and I am trying to implement the removal of deleted objects and do not know how to do it. Can anybody help me?

+6
source share
2 answers

You can delete items in a section using QSortingSection instead of QSection and set canDeleteRows to YES.

QSortingSection *foosection = [[QSortingSection alloc] init]; foosection.canDeleteRows = YES; 

Continue adding items as usual, and you should be able to scroll through each item so that the delete button appears. When you click the delete button, the item automatically disappears from the section.

+1
source

Answer: I think the combination is: How to recognize gestures in the Google iPhone SDK?

And maybe the bit you're really worried about is how to Add / Remove a new QElement to a section (from a github issue).

The latter assumes that the way to remove elements in this example is extraRepayAmount from the section:

 [self.extraRepaySection.elements removeObject:self.extraRepayAmount]; [self.quickDialogTableView reloadSections:[NSIndexSet indexSetWithIndex:2] withRowAnimation:UITableViewRowAnimationFade]; 
0
source

All Articles