An action that can be taken when the user taps a button in an alert.
- iOS 8.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
You use this class to configure information about a single action, including the title to display in the button, any styling information, and a handler to execute when the user taps the button. After creating an alert action object, add it to a
UIAlert object before displaying the corresponding alert to the user.