Last active
April 26, 2017 23:17
-
-
Save dariogz/07d755e83aad252b6880b0873be6bdbf to your computer and use it in GitHub Desktop.
Swift 3 Alert Modal (UIAlertController)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create Alert | |
let alert = UIAlertController(title: "Your Title", message: "Your message", preferredStyle: UIAlertControllerStyle.alert) | |
// Create Action | |
alert.addAction(UIAlertAction(title: "Your action name", style: UIAlertActionStyle.default, handler: nil)) | |
// Present | |
self.present(alert, animated: true, completion: nil) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment