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

Customizing cell sizes would crash the dragging #40

Open johnqh opened 10 years ago

johnqh commented 10 years ago

Simple to reproduce.

In the demo app, in ViewController.m, add the following method:

See screenshot for the layout:

ios simulator screen shot may 22 2014 3 28 12 pm

Trying to drag any cell would crash with an exception.

JaredPoetter commented 10 years ago

I am doing the same sort of thing with each cell having a different size. So I am wondering if this is not an issue with the DraggableCollectionView.

What kind of exception are you getting? Because I am getting one about the index is out of bounds because something is trying to access the count of the array which would be one more than is present. It is doing that for any of the cells in the collectionview.

bartoszhernas commented 9 years ago

Anyone tried to solve this issue? I am having the same problems