let alertController = UIAlertController(title: “ABCDE”, message: “FGHIJK”, preferredStyle: .alert)
let defaultAction = UIAlertAction(title: “Default”, style: .default) {
action in
// code
}
let cancelAction = UIAlertAction(title: “キャンセル”, style: .cancel) {
action in
// code
}
alertController.addAction(defaultAction)
alertController.addAction(cancelAction)
present(alertController, animated: true, completion: nil)