回答編集履歴

1

UIAlertController の宣言を追加

2019/11/07 00:58

投稿

TakuyaAso
TakuyaAso

スコア1361

test CHANGED
@@ -12,6 +12,8 @@
12
12
 
13
13
  ```
14
14
 
15
+ let alert = UIAlertController(title: "正解!", message: "おめでとう", preferredStyle: .alert)
16
+
15
17
  let okAction = UIAlertAction(title: "OK", style: .default, handler: { (action) in
16
18
 
17
19
  alert.dismiss(animated: true, completion: nil)