Instance Method

collectionView:dragSessionWillBegin:

Called to let you know that a drag session is about to begin for the collection view.

Declaration

- (void)collectionView:(UICollectionView *)collectionView dragSessionWillBegin:(id<UIDragSession>)session;

Parameters

collectionView

The collection view from which the drag operation originated.

session

The drag session that is beginning.

Discussion

This method is called after it has been determined that a drag will begin and after any lift animations have occurred, but before the position of the drag changes. Use this method to perform any tasks related to the management of the drag session in your app.

Each call to this method is always balanced by a call to the collectionView:dragSessionDidEnd: method.

See Also

Tracking the Drag Session