Class

UIImpactFeedbackGenerator

A concrete UIFeedbackGenerator subclass that creates haptics to simulate physical impacts.

Declaration

@interface UIImpactFeedbackGenerator : UIFeedbackGenerator

Overview

Use impact feedback to indicate that an impact has occurred. For example, you might trigger impact feedback when a user interface object collides with another object or snaps into place.

For more information, see Using Feedback Generators.

Topics

Initializing the Feedback Generator

- initWithStyle:

Returns a newly initialized feedback generator.

UIImpactFeedbackStyle

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

Reporting Impacts

- impactOccurred

Triggers impact feedback.

Relationships

Inherits From

See Also

Haptic Feedback

UIFeedbackGenerator

The abstract superclass for all feedback generators.

UINotificationFeedbackGenerator

A concrete UIFeedbackGenerator subclass that creates haptics to communicate successes, failures, and warnings.

UISelectionFeedbackGenerator

A concrete UIFeedbackGenerator subclass that creates haptics to indicate a change in selection.