質問編集履歴
5
誤記修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,7 +34,7 @@
|
|
34
34
|
|
35
35
|
let topController = viewdata.getViewController("TEST")
|
36
36
|
|
37
|
-
topController.myDelegate = self // ←ここでビルドエラー【Value of type 'UIViewController' has no member '
|
37
|
+
topController.myDelegate = self // ←ここでビルドエラー【Value of type 'UIViewController' has no member 'myDelegate’】
|
38
38
|
|
39
39
|
controllers.append(topController)
|
40
40
|
|
4
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -72,7 +72,7 @@
|
|
72
72
|
|
73
73
|
let storyboard:UIStoryboard = UIStoryboard(name:"Main",bundle:nil)
|
74
74
|
|
75
|
-
let TestView = storyboard.instantiateViewController(withIdentifier: "Test
|
75
|
+
let TestView = storyboard.instantiateViewController(withIdentifier: "Test") as! TestViewController
|
76
76
|
|
77
77
|
return TestView
|
78
78
|
|
3
タイトル修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
デリゲート
|
1
|
+
メソッドを経由してデリゲートを設定する方法
|
test
CHANGED
File without changes
|
2
書式修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
-
**VIewController**
|
15
|
+
**VIewController.swift**
|
16
16
|
|
17
17
|
```
|
18
18
|
|
@@ -54,7 +54,7 @@
|
|
54
54
|
|
55
55
|
|
56
56
|
|
57
|
-
**VIewData**
|
57
|
+
**VIewData.swift**
|
58
58
|
|
59
59
|
```
|
60
60
|
|
@@ -94,7 +94,7 @@
|
|
94
94
|
|
95
95
|
|
96
96
|
|
97
|
-
**TestViewController**
|
97
|
+
**TestViewController.swift**
|
98
98
|
|
99
99
|
```
|
100
100
|
|
@@ -128,7 +128,7 @@
|
|
128
128
|
|
129
129
|
|
130
130
|
|
131
|
-
**myDelegate**
|
131
|
+
**myDelegate.swift**
|
132
132
|
|
133
133
|
```
|
134
134
|
|
1
書式修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
VIewDataのgetViewControllerメソッドを仲介する形式で実現させたいのですが
|
4
4
|
|
5
|
-
下記ソースの通り、ViewControllerのtopController.myDelegate = selfでビルドエラーとなります。
|
5
|
+
下記ソースの通り、ViewControllerの `topController.myDelegate = self` でビルドエラーとなります。
|
6
6
|
|
7
7
|
|
8
8
|
|
@@ -12,9 +12,9 @@
|
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
-
|
15
|
+
**VIewController**
|
16
16
|
|
17
|
-
|
17
|
+
```
|
18
18
|
|
19
19
|
import UIKit
|
20
20
|
|
@@ -54,7 +54,9 @@
|
|
54
54
|
|
55
55
|
|
56
56
|
|
57
|
-
|
57
|
+
**VIewData**
|
58
|
+
|
59
|
+
```
|
58
60
|
|
59
61
|
import UIKit
|
60
62
|
|
@@ -92,7 +94,9 @@
|
|
92
94
|
|
93
95
|
|
94
96
|
|
95
|
-
|
97
|
+
**TestViewController**
|
98
|
+
|
99
|
+
```
|
96
100
|
|
97
101
|
import UIKit
|
98
102
|
|
@@ -124,7 +128,9 @@
|
|
124
128
|
|
125
129
|
|
126
130
|
|
127
|
-
|
131
|
+
**myDelegate**
|
132
|
+
|
133
|
+
```
|
128
134
|
|
129
135
|
import UIKit
|
130
136
|
|