Instance Method

initWithStyle:

Returns a newly initialized feedback generator.

Declaration

- (instancetype)initWithStyle:(UIImpactFeedbackStyle)style;

Parameters

style

A value representing the mass of the colliding objects. For a list of valid feedback styles, see the UIImpactFeedbackStyle enumeration.

Return Value

A newly initialized feedback generator.

Discussion

For more information on using feedback generators, see Using Feedback Generators.

See Also

Initializing the Feedback Generator

UIImpactFeedbackStyle

The mass of the objects in the collision simulated by a UIImpactFeedbackGenerator object.