I\'m presenting a UIAlertView to the user and I can\'t figure out how to write the handler. This is my attempt:
UIAlertView
let alert = UIAlertController(ti
Syntax change in swift 3.0
alert.addAction(UIAlertAction(title: "Okay", style: .default, handler: { _ in print("Foo") } ))