Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement swipe to delete with quickdialog

I am using quickdialog for a form and I am trying to implement swipe to delete and have no idea how I would do that. Can anybody help me?

like image 872
BObereder Avatar asked Jan 27 '13 15:01

BObereder


1 Answers

You can swipe to delete elements in a section by using QSortingSection in place of QSection and setting canDeleteRows to YES.

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

Proceed to add elements as usual and you should be able to swipe each element to have a "delete" button appear. Upon hitting the delete button, the item automatically disappears from the section.

like image 106
Eric Baker Avatar answered Sep 27 '22 16:09

Eric Baker