AlertAction
public class AlertAction
Describes each action that is going to be shown in the ‘AlertViewController’
-
Initialized an ‘AlertAction’
Declaration
Swift
public init(title: String, style: AlertActionStyle, handler: AlertActionHandler?)Parameters
titleThe title for the action, that will be used as the title for a button in the alert controller
styleThe style for the action, that will be used to style a button in the alert controller.
handlerThe handler for the action, that will be called when the user clicks on a button in the alert controller.
Return Value
An inmutable AlertAction object
AlertAction Class Reference