質問編集履歴

1

コードの追加

2018/08/30 13:24

投稿

globalplus
globalplus

スコア119

test CHANGED
File without changes
test CHANGED
@@ -7,3 +7,63 @@
7
7
 
8
8
 
9
9
  ![イメージ説明](7d6764aba0301f9fea12bda019842448.png)
10
+
11
+
12
+
13
+ ```SecondViewController
14
+
15
+ import UIKit
16
+
17
+ import AVFoundation
18
+
19
+ import GoogleMobileAds
20
+
21
+
22
+
23
+ class SecondViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
24
+
25
+
26
+
27
+
28
+
29
+ @IBAction func setting(_ sender: UIButton)
30
+
31
+ {
32
+
33
+ counter = counter + 1
34
+
35
+ print(counter)
36
+
37
+
38
+
39
+ if counter == 1{
40
+
41
+ self.performSegue(withIdentifier: "nextView", sender: nil)
42
+
43
+ counter = 0
44
+
45
+ }
46
+
47
+ }
48
+
49
+ @IBAction func setting(_ sender: UIButton)
50
+
51
+ {
52
+
53
+ counter = counter + 1
54
+
55
+ print(counter)
56
+
57
+
58
+
59
+ if counter == 1{
60
+
61
+ self.performSegue(withIdentifier: "secondsetting", sender: nil)
62
+
63
+ counter = 0
64
+
65
+ }
66
+
67
+ }
68
+
69
+ ```