Skip to content

Instantly share code, notes, and snippets.

@takashi1975
Last active March 5, 2018 05:36
Show Gist options
  • Select an option

  • Save takashi1975/d12caed8190a035eda98badffe7fa13e to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
Author

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