Instance Method

initWithView:parameters:

Creates a targeted preview for a view in the current window and including the specified parameters.

Declaration

- (instancetype)initWithView:(UIView *)view parameters:(__kindof UIPreviewParameters *)parameters;

Parameters

view

The view to animate. This view must be in a window.

parameters

The animation parameters.

Return Value

A new targeted preview object.

See Also

Creating a Targeted Preview Object

- initWithView:parameters:target:

Creates a targeted preview with the specified view, parameters, and target container.

- initWithView:

Creates a targeted preview for a view in the current window.