Skip to content

Instantly share code, notes, and snippets.

@takashi1975
Last active March 5, 2018 05:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takashi1975/d12caed8190a035eda98badffe7fa13e to your computer and use it in GitHub Desktop.
Save takashi1975/d12caed8190a035eda98badffe7fa13e to your computer and use it in GitHub Desktop.
Swift4 アラートの表示
//警告表示
internal alertTest() {
let alert = UIAlertController(title: "タイトル", message: "メッセージ", preferredStyle: .alert)
let defaultAction = UIAlertAction(title: "OK", style: .default) {
(action) in
print("OK")
}
alert.addAction(defaultAction)
self.present(alert, animated: true, completion: nil)
}
@takashi1975
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment