Instance Method

dropItem:toTarget:

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

Required.

Declaration

- (id<UIDragAnimating>)dropItem:(UIDragItem *)dragItem toTarget:(UIDragPreviewTarget *)target;

Parameters

dragItem

The item that you want to drop.

target

The location at which to drop the item, specified as a point in a view. You can also use the UIDragPreviewTarget object to specify a final transform to apply to the content.

Discussion

Use this method to animate drops to any view in your app. For example, you might use this method to drop items onto a tab bar or toolbar that is part of your interface.

See Also

Animating Rows to Their Destination

- dropItem:toRowAtIndexPath:

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

Required.

- dropItem:toPlaceholder:

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

Required.