The interface for initiating drags from a table view.


@protocol UITableViewDragDelegate


Implement this protocol in the object that you use to initiate drags from your table view. The only required method of this protocol is the tableView:itemsForBeginningDragSession:atIndexPath: method, but you can implement other methods as needed to customize the drag behavior of your table view.

Assign your custom delegate object to the dragDelegate property of your table view.


Providing the Items to Drag

- tableView:itemsForBeginningDragSession:atIndexPath:

Provides the initial set of items (if any) to drag.


- tableView:itemsForAddingToDragSession:atIndexPath:point:

Adds the specified items to an existing drag session.

Tracking the Drag Session

- tableView:dragSessionWillBegin:

Signals the start of a drag operation involving content from the specified table view.

- tableView:dragSessionDidEnd:

Signals the end of a drag operation involving content from the specified table view

- tableView:dragSessionIsRestrictedToDraggingApplication:

Returns a Boolean value indicating whether the dragged content must be dropped in the same app.

- tableView:dragSessionAllowsMoveOperation:

Returns a Boolean value indicating whether your app supports a move operation for the dragged content.

Providing a Custom Preview

- tableView:dragPreviewParametersForRowAtIndexPath:

Returns custom information about how to display the row at the specified location during the drag.


Inherits From

See Also

Drag and Drop

Supporting Drag and Drop in Table Views

Initiate drags and handle drops from a table view.


The interface for handling drops in a table view.


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


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


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