Class

UIDragInteraction

An interaction to enable dragging of items from a view, employing a delegate to provide drag items and to respond to calls from the drag session.

Declaration

@interface UIDragInteraction : NSObject

Topics

Initializing the Drag Interaction

- initWithDelegate:

Initializes a drag interaction object with a custom delegate object.

Managing Drag Interactions

allowsSimultaneousRecognitionDuringLift

A Boolean value that determines whether the interaction allows recognition of other gestures during the lift activity.

delegate

An object that configures and controls a drag interaction.

UIDragInteractionDelegate

The interface for configuring and controlling a drag interaction.

Enabling the Interactions

enabled

A Boolean value that specifies whether the drag interaction responds to touches and is allowed to participate in a drag activity.

enabledByDefault

A device-dependent Boolean value that indicates whether a newly-instantiated drag interaction is allowed to participate in a drag activity.

Relationships

Inherits From

Conforms To

See Also

Drag-and-Drop Interactions

UIDragInteractionDelegate

The interface for configuring and controlling a drag interaction.

UIDropInteractionDelegate

The interface for configuring and controlling a drop interaction.

UIDropInteraction

An interaction to enable dropping of items onto a view, employing a delegate to instantiate objects and respond to calls from the drop session.