XLForm icon indicating copy to clipboard operation
XLForm copied to clipboard

Notification when rows are reordered?

Open colinrblake opened this issue 6 years ago • 1 comments

I am using a section with XLFormSectionOptionCanReorder and need to get notified when the user reorders rows. How can I do that? formRowDescriptorValueHasChanged isn't called, and neither are formRowHasBeenAdded or formRowHasBeenRemoved. What am I missing?

colinrblake avatar Apr 21 '18 15:04 colinrblake

You could try overriding - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)sourceIndexPath toIndexPath:(NSIndexPath *)destinationIndexPath in your XLFormViewController. Don't forget to call super or it won't work.

mats-claassen avatar May 11 '18 12:05 mats-claassen