Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
UIAlertControllerSelectedAnimal
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
You can’t perform that action at this time.