Protocol

UITableViewDropItem

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

Declaration

@protocol UITableViewDropItem

Overview

When handling a drop, you get instances of this class from the items property of the UITableViewDropCoordinator object. Use them to retrieve the data for the items being dragged and to plan any animations related to dropping the items. You do not create instances of this class yourself.

Topics

Getting the Drag Item

dragItem

The item that was dragged.

Required.

Getting the Item Information

previewSize

The size of the drag item's preview.

Required.

sourceIndexPath

The index path of the item in the table view, if any.

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.

UITableViewDropCoordinator

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

UITableViewDropProposal

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