Skip to content

Instantly share code, notes, and snippets.

@codebeaulieu
Created July 8, 2015 00:43
Show Gist options
  • Save codebeaulieu/3aff27826e50c502aaab to your computer and use it in GitHub Desktop.
Save codebeaulieu/3aff27826e50c502aaab to your computer and use it in GitHub Desktop.
handle tap
func handleTap(sender: UITapGestureRecognizer? = nil) {
// just creating an alert to prove our tap worked!
let tapAlert = UIAlertController(title: "hmmm...", message: "this actually worked?", preferredStyle: UIAlertControllerStyle.Alert)
tapAlert.addAction(UIAlertAction(title: "OK", style: .Destructive, handler: nil))
self.presentViewController(tapAlert, animated: true, completion: nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment