Questions tagged [uicollectionviewdragdelegate]
6 questions
7
votes
1 answer
How to achieve transparent background or rounded corners when dragging a UICollectionViewCell
I'm sure there must be a simple way of doing this, but I've spent a long time down various rabbit holes without success so far.
I have a collection view which supports drag and drop. The cells being dragged have a UIImageView in the contentView, and…

TimD
- 8,014
- 2
- 24
- 34
3
votes
2 answers
How can I disable cell dragging between UICollectionView sections?
I have two sections in my UICollectionView. I would like to be able to drag cells within each section but not between them.
I am using a long press gesture recognizer to animate the cell drag movement so I could check that the drop location is not…

CLK
- 211
- 3
- 7
2
votes
2 answers
UICollectionViewDragDelegate isn't working
I'm successfully implementing a UICollectionView that display some dummy texts on screen. Everything is working fine and now I added the drag feature implementing self.collectionView.dragDelegate = self and the UICollectionViewDelegateFlowLayout,…

bruno
- 2,154
- 5
- 39
- 64
1
vote
0 answers
UIDragItem causes memory leak when Context Menu has been initialised
I have a CollectionView with Drag and Drop and Context Menu functionality. There's a memory leak caused by returned [UIDragItem] array in ItemsForBeginning method when I initialise cell's context menu.
Objects are being kept in memory when I pop to…

bagmetv
- 11
- 3
0
votes
0 answers
How do I change the tintColor of UIDragPreviewParameters
enter image description here
How do I change the number's background color to red?
UIDragPreviewParameters only provide a background color to modify the translucent cell.
I have a collection view and conform the dragDelegate and dropDelegate.
here…

yxk
- 11
- 2
0
votes
0 answers
Drop Item into an empty Collection View secion
I'm working with UICollectionView and Drag/Drop Delegates. I need to drop a data source's item into an empty section. I've learned about that and I found out that it's a long-ongoing trouble (e.g. https://developer.apple.com/forums/thread/114010).…

Nikodem
- 89
- 1
- 8