Instance Method


Called when dragged content enters the collection view's bounds rectangle.


- (void)collectionView:(UICollectionView *)collectionView dropSessionDidEnter:(id<UIDropSession>)session;



The collection view that is tracking the dragged content.


The drop session object containing information about the type of data being dragged.


The collection view calls this method when dragged content enters its bounds rectangle. The method is not called again until the dragged content exits the collection view's bounds (triggering a call to the collectionView:dropSessionDidExit: method) and enters again.

Use this method to perform any one-time setup associated with tracking dragged content over the collection view.

See Also

Tracking the Drag Movements

- collectionView:dropSessionDidUpdate:withDestinationIndexPath:

Tells your delegate that the position of the dragged data over the collection view changed.

- collectionView:dropSessionDidExit:

Called when dragged content exits the table view's bounds rectangle.

- collectionView:dropSessionDidEnd:

Called to notify you when the drag operation ends.