Created
August 29, 2017 07:16
-
-
Save SuperShinyEyes/f4632823af8ea42bda80ce4bb6f0a59d to your computer and use it in GitHub Desktop.
UIAlertViewController Barebone
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
@IBAction func showAlert(_ sender: UIButton) { | |
let alert = UIAlertController(title: "Hello", message: "Ca va?", preferredStyle: .alert) | |
let action = UIAlertAction(title: "Awesome", style: .default, handler: nil) | |
alert.addAction(action) | |
present(alert, animated: true) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment