lukescott / DraggableCollectionView

Extension for the UICollectionView and UICollectionViewLayout that allows a user to move items with drag and drop. --- HELP WANTED --- Looking for maintainer and help with the experimental branch.
MIT License
549 stars 175 forks source link

Can't compliant with CoreData + NSFetchedResultsController? #43

Open seedante opened 10 years ago

seedante commented 10 years ago

Hi, luke, Thanks for your code. I get a problem when use CoreData + NSFetchedResultsController as data source instead of NSArray. I use the code:https://github.com/AshFurrow/UICollectionView-NSFetchedResultsController to make UICollectionView works with NSFetchedResultsController just like UITableView together with NSFetchedResultsController.
2014-07-14 7 24 48 2014-07-14 7 53 30

in NSFetchedResultsController, I use alphabeticPart and orderPart to sort cell, and use alphabeticPart as sectionNameKeyPath, make all same with before, just I use orderPart to sort cell in the section. 2014-07-14 7 57 26 but I drag and drop cell in the same section, i.e move B3 to B2, it likes this. Only after I [self.collection reloadData], it looks right. And I move cell to another section, it crashes. This is maybe layout information error. Now I just want to work out with first problem:after move a cell in the same section, onsreen get the same cell. 2014-07-14 7 59 35