Skip to content

Instantly share code, notes, and snippets.

@RockinPaul
Created March 21, 2018 21:22
Show Gist options
  • Save RockinPaul/c654c63fc3905f5743db2f98242b9673 to your computer and use it in GitHub Desktop.
Save RockinPaul/c654c63fc3905f5743db2f98242b9673 to your computer and use it in GitHub Desktop.
let alert = UIAlertController(title: "Some title", message: "Some message", preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "Yes", style: .default, handler: { (_) in
print("Do some staff")
}))
alert.addAction(UIAlertAction(title: "No", style: .default, handler: nil))
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