Closed boazin closed 9 years ago
Found it. I needed to add the following. (You might wanna find some clever way to get it into the demo because it is is not common code, I had a hard time finding it)
- (NSIndexPath *)tableView:(UITableView *)tableView
targetIndexPathForMoveFromRowAtIndexPath:(NSIndexPath *)sourceIndexPath
toProposedIndexPath:(NSIndexPath *)proposedDestinationIndexPath
{
if ([sourceIndexPath section] != [proposedDestinationIndexPath section]) {
proposedDestinationIndexPath = sourceIndexPath;
}
return proposedDestinationIndexPath;
}
Thanks again!
Hi, thanks for the input. I'll have a look at it.
First of all - Awesome package. Thanks a lot!
I have section 0 that allows reordering of cells. Section 1 - doesn't allow. The thing is when the user drags a cell "too low" (his intention is to set it the last cell in section 0 but he "misses") I get a crash:
How can I avoid it without getting all the sections in the swap game