Created
March 21, 2018 21:22
-
-
Save RockinPaul/c654c63fc3905f5743db2f98242b9673 to your computer and use it in GitHub Desktop.
This file contains 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
let alert = UIAlertController(title: "Some title", message: "Some message", preferredStyle: .alert) | |
alert.addAction(UIAlertAction(title: "Yes", style: .default, handler: { (_) in | |
print("Do some staff") | |
})) | |
alert.addAction(UIAlertAction(title: "No", style: .default, handler: nil)) | |
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