Download iOS for free


A UIAlertController object displays an alert message to the user. This class replaces the UIActionSheet and UIAlertView classes for displaying alerts. After configuring the alert controller with the actions and style you want, present it using the presentViewController:animated:completion: method.

From Apple's Documentation

UIAlertController in Swift

Related Examples

AlertViews with UIAlertController