FlorianMielke / FMMoveTableView

Discontinued: Please use iOS 11's Drag & Drop capability instead.
MIT License
623 stars 101 forks source link

issue with adaptedIndexPathForRowAtIndexPath: #15

Closed jamiemcd closed 10 years ago

jamiemcd commented 11 years ago

2013-08-31_18-59-39

According to your 2. comment, shouldn't it be:

if (![self movingIndexPath] || [self movingIndexPath].section != indexPath.section) { return indexPath; }

I was getting a crash in my app when dragging to a section the row was not allowed to move to. adaptedIndexPathForRowAtIndexPath was returning 2,3 when it was passed 2,2. However, the last data available was 2,2. When I changed this line of code, it worked correctly.

FlorianMielke commented 11 years ago

Thanks for pointing that out. Can't track this at the moment due to other projects but I'll take a deeper look into that soon.