An object that represents the presence or movement of a button press on the screen for a particular event.
- iOS 9.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
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
gesture property returns the gesture recognizers—that is, instances of a concrete subclass of
UIGesture—that are currently handling the given button press.