質問編集履歴
2
情報修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,9 +34,9 @@
|
|
34
34
|
|
35
35
|
//Button追加
|
36
36
|
|
37
|
-
alert.addAction(
|
37
|
+
alert.addAction(appleButton)
|
38
38
|
|
39
|
-
alert.addAction(g
|
39
|
+
alert.addAction(orangeButton)
|
40
40
|
|
41
41
|
|
42
42
|
|
1
情報修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
let alert: UIAlertController = UIAlertController(title: "あなたはどちら?", message: "選択して下さい", preferredStyle: UIAlertController.Style.alert)
|
18
18
|
|
19
|
-
let
|
19
|
+
let appleButton: UIAlertAction = UIAlertAction(title: "りんご", style: UIAlertAction.Style.default, handler:{
|
20
20
|
|
21
21
|
(action: UIAlertAction!) -> Void in
|
22
22
|
|
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
})
|
26
26
|
|
27
|
-
let g
|
27
|
+
let orangeButton: UIAlertAction = UIAlertAction(title: "オレンジ", style: UIAlertAction.Style.default, handler:{
|
28
28
|
|
29
29
|
(action: UIAlertAction!) -> Void in
|
30
30
|
|