Instance Method

initWithView:

Returns a newly initialized preview interaction for the specified view.

Declaration

- (instancetype)initWithView:(UIView *)view;

Parameters

view

The view for which the preview interaction should respond

Return Value

An initialized preview interaction.

Discussion

Preview interactions operate on touches within a specified view. Unlike gesture recognizers, the view doesn't maintain a strong reference to preview interactions. You must therefore retain a reference to the preview interaction to ensure that it continues to receive touches from the view.

See Also

Preparing Preview Interactions

delegate

An object that acts as the delegate of the preview interaction.