Instance Method

dropItem:toItemAtIndexPath:

Animates the item to the specified index path in the collection view.

Required.

Declaration

- (id<UIDragAnimating>)dropItem:(UIDragItem *)dragItem toItemAtIndexPath:(NSIndexPath *)indexPath;

Parameters

dragItem

The dragged item that you want to animate into position.

indexPath

The index path to use as the destination for the animation.

Discussion

Use this method to animate the dragged item to the specific location in the collection view. Typically, you use this method for content that originated in the collection view and is moving to a new location.

See Also

Animating Items to Their Destination

- dropItem:intoItemAtIndexPath:rect:

Animates the item to the specified rectangle in the collection view.

Required.

- dropItem:toTarget:

Animates the item to an arbitrary location in your view hierarchy.

Required.

- dropItem:toPlaceholder:

Animates the item to the specified location and inserts a placeholder cell at that location.

Required.