Created
November 10, 2017 16:21
-
-
Save yabenatti/2916aff24445b5d2eb6db6a561c7d79f to your computer and use it in GitHub Desktop.
UIAlertControllerSelectedAnimal
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
func selectedTheAnimal(animal: Animal) { | |
let alert = UIAlertController(title: animal.name.uppercased(), message: "Selected the: \(animal.name)", preferredStyle: .alert) | |
let action = UIAlertAction(title: "OK", style: .cancel, handler: nil); | |
alert.addAction(action) | |
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