Protocol

UIInteraction

The protocol that an interaction implements to access the view that owns it.

Declaration

@protocol UIInteraction

Topics

Getting the View

view

The view that owns the interaction.

Required.

Tracking the Movements

- didMoveToView:

Tells the interaction that a view added or removed it from the view's interactions array.

Required.

- willMoveToView:

Tells the interaction that a view will add or remove it from the view's interactions array.

Required.

See Also

Adding and Removing Interactions

- addInteraction:

Adds an interaction to the view.

- removeInteraction:

Removes an interaction from the view.

interactions

The array of interactions for the view.

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