Protocol

UITableViewDropCoordinator

An interface for coordinating your custom drop-related actions with the table view.

Declaration

@protocol UITableViewDropCoordinator

Overview

You do not create instances of this class yourself. When a drop occurs in the table view, UIKit creates an instance of this class and passes it to your tableView:performDropWithCoordinator: method. Use the object to let the table view know how you want to animate the dropped items into position.

Topics

Getting the Dragged Items

items

The items being dragged.

Required.

Getting the Drop Location

destinationIndexPath

The index path at which to insert the item into the table view.

Required.

Animating Rows to Their Destination

- dropItem:toRowAtIndexPath:

Animates the item to the specified index path in the table 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.

Getting the Session Information

session

The drop session containing information about the transaction.

Required.

proposal

The proposal for how to incorporate the dropped items.

Required.

Relationships

Inherits From

See Also

Drag and Drop

Supporting Drag and Drop in Table Views

Initiate drags and handle drops from a table view.

UITableViewDragDelegate

The interface for initiating drags from a table view.

UITableViewDropDelegate

The interface for handling drops in a table view.

UITableViewDropItem

The data associated with an item being dropped into the table view.

UITableViewDropProposal

Your proposed solution for handling a drop in a table view.