Skip to content

Instantly share code, notes, and snippets.

@0ber
Last active September 5, 2016 19:56
Show Gist options
  • Save 0ber/50dcce229bcff4aca305845dda2132e2 to your computer and use it in GitHub Desktop.
Save 0ber/50dcce229bcff4aca305845dda2132e2 to your computer and use it in GitHub Desktop.
let actionSheet = UIAlertController.actionSheet(actions: [
.Default(title: "Default", handler: { _ in print("tap")}),
.Destructive(title: "Destructive", handler: { _ in print("tap")}),
.Cancel(title: "Cancel", handler: nil)
])
presentViewController(alert, animated:true, completion:nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment