LXReorderableCollectionViewFlowLayout
LXReorderableCollectionViewFlowLayout copied to clipboard
Is there a way to track the cell's position while it is being dragged?
I've got a tableview (on the left) and a reorderable collectionview on the right.
What I'd like to be able to achieve is the ability to drag from the collection view into the table view. Or at least highlight the cell in the table view while a collection view cell is being dragged on to it.
-------------------------------------
| tablecell | |
|-----------| |------| |------| |
| tcell2 | | coll | | coll | |
|-----------| | cell | | cell2| |
| tcell3 | |------| |------| |
|-----------| |
| |
| |
-------------------------------------
So in the above diagram, I could drag collcell2 over tcell3, and tcell3 would highlight.
To do this it seems I would have to be able to track the coll cell's position (while it's being dragged), and then somehow convert the co-ords into the table views system, and then highlight the relevant cell under that co-ord.
As a first step, is there a way to track these co-ords? Or would there be a better way of doing this?