Touches, Presses, and Gestures
Encapsulate your app's event-handling logic in gesture recognizers so that you can reuse that code throughout your app.
If you build your apps using standard UIKit views and controls, UIKit automatically handles touch events (including Multitouch events) for you. However, if you use custom views to display your content, you must handle all touch events that occur in your views. There are two ways to handle touch events yourself.
An abstract interface for responding to and handling events.
An object that describes a single user interaction with your app.
An object representing the location, size, movement, and force of a touch occurring on the screen.
An object that represents the presence or movement of a button press on the screen for a particular event.
An event that describes the state of a set of physical buttons that are available to the device, such as those on an associated remote or game controller.
A set of methods implemented by the delegate of a gesture recognizer to fine-tune an app’s gesture-recognition behavior.
3D Touch Interactions
A class that registers a view to provide a custom user experience in response to 3D Touch interactions.
A set of methods that defines the styles you can apply to peek quick actions and peek quick action groups, and defines a read-only accessor for the user-visible title of a peek quick action.
Drag and Drop
Bring drag and drop to your app by using interaction APIs with your views.
Menus and Shortcuts
Simplify interactions with your app by using menu systems, contextual menus, Home screen quick actions, and keyboard shortcuts.
Make your apps accessible to everyone, including people with disabilities.
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