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.

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