Contents

UIPress

An object that represents the presence or movement of a button press on the screen for a particular event.

Declaration

class UIPress

Overview

The press specifically encapsulates the pressing of some physically actuated button. All of the press types represent actual physical buttons on one of a variety of remotes. You access UIPress objects through UIEvent objects passed into responder objects for event handling. The gestureRecognizers property returns the gesture recognizers — instances of a concrete subclass of UIGestureRecognizer — that are currently handling the given button press.

Topics

Getting a press object’s gesture recognizers

Responding to press events

Getting the press’s location

Getting press attributes

Constants

See Also

Button presses