Skip to content

Instantly share code, notes, and snippets.

@JayachandraA
Created May 4, 2017 12:15
Show Gist options
  • Save JayachandraA/cc270a9e67d7d6edc416cf19570878c8 to your computer and use it in GitHub Desktop.
Save JayachandraA/cc270a9e67d7d6edc416cf19570878c8 to your computer and use it in GitHub Desktop.
func showAlert(title: String, message: String){
let alert = UIAlertController(title: title, message: message, preferredStyle: .alert)
let ok = UIAlertAction(title: "Ok", style: .default) { (action) in
}
alert.addAction(ok)
present(alert, animated: true, completion: nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment