FlorianMielke / FMMoveTableView

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

Update FMFramework/FMMoveTableView.m #10

Closed meinside closed 11 years ago

meinside commented 12 years ago

(in handleLongPress: function)

'NSIndexPath *movingIndexPath = ...' seems to reference nil object after [self setMovingIndexPath:nil] called.

It crashes on following [self reloadRowsAtIndexPaths: withRowAnimation:] in my environment(Xcode 4.5, iPhone Simulator 6.0, NON-ARC),

so I fixed it to create a new NSIndexPath from the old one.

FlorianMielke commented 11 years ago

Thanks for the hint and please apologize my delayed responds. I've solved this issue in a different way by simply coping the movingIndexPath.