Instance Method


Tells this object when a value associated with a press has changed.


- (void)pressesChanged:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event;



A set of UIPress instances containing changed values.


The event to which the presses belong.


UIKit calls this method when an analog value associated with a button or thumbstick changes. For example, it calls this method when the analog force value of a push button changes. Use this method to take any needed actions in response to the change.

The default implementation of this method forwards the message up the responder chain. When creating your own subclasses, call super to forward any events that you do not handle yourself.

See Also

Responding to Press Events

- pressesBegan:withEvent:

Tells this object when a physical button is first pressed.

- pressesEnded:withEvent:

Tells the object when a button is released.

- pressesCancelled:withEvent:

Tells this object when a system event (such as a low-memory warning) cancels a press event.