Last active
March 5, 2018 05:36
-
-
Save takashi1975/d12caed8190a035eda98badffe7fa13e to your computer and use it in GitHub Desktop.
Swift4 アラートの表示
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//警告表示 | |
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) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://qiita.com/fishpilot272/items/b76e62eb82fc8d788da5