Protocol

UITableViewDropPlaceholderContext

An object for tracking a placeholder cell that you added to your table during a drop operation.

Declaration

@protocol UITableViewDropPlaceholderContext

Overview

Do not create instances of this class yourself. Instead, call dropItem:toPlaceholder: from your drop coordinator object. That method inserts a placeholder cell into the table and returns a UITableViewDropPlaceholderContext object for managing that placeholder.

When you are ready to swap a placeholder cell for a cell with the actual data, call the commitInsertionWithDataSourceUpdates: method of the context object. To remove the placeholder cell without providing a replacement, call deletePlaceholder instead.

Topics

Updating the Placeholder Cell

- commitInsertionWithDataSourceUpdates:

Exchanges the placeholder cell for a cell with the final content.

Required.

Removing the Placeholder Cell

- deletePlaceholder

Removes an unneeded placeholder cell from the table view.

Required.

Getting the Drag Item

dragItem

The drag item represented by the placeholder cell.

Required.

Relationships

Inherits From

See Also

Placeholder Cells

UITableViewDropPlaceholder

A placeholder cell that supports customizing the drop preview parameters.

UITableViewPlaceholder

An object that contains information about a placeholder cell being inserted into a table.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software