Class

UIDragItem

A representation of an underlying data item being dragged from one location to another.

Declaration

@interface UIDragItem : NSObject

Topics

Initializing a Drag Item

- initWithItemProvider:

Initializes a new drag item with a specified item provider.

Accessing the Drag Item's Data

itemProvider

The item provider associated with the drag item.

localObject

A custom object associated with the drag item.

Changing the Drag Item Preview

previewProvider

A visual preview of the drag item, displayed while the user drags the item across the screen.

Relationships

Inherits From

See Also

Drag Sources

UIDragDropSession

The common interface for querying the state of both drag sessions and drop sessions.

UIDragSession

The interface for configuring a drag session.

UIDragAnimating

The interface for providing custom animation alongside the system's lift, drop, and cancellation animations.

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