回答編集履歴
1
追加の質問への回答
answer
CHANGED
@@ -7,4 +7,22 @@
|
|
7
7
|
```swift
|
8
8
|
let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
|
9
9
|
let cnt = appDelegate.cnt
|
10
|
-
```
|
10
|
+
```
|
11
|
+
|
12
|
+
---
|
13
|
+
|
14
|
+
追加の質問への回答。
|
15
|
+
|
16
|
+
```swift
|
17
|
+
class InputViewController: UIViewController {
|
18
|
+
var hoge: Int = 0
|
19
|
+
:
|
20
|
+
}
|
21
|
+
|
22
|
+
class ViewController: UIViewController {
|
23
|
+
:
|
24
|
+
let inputViewController = InputViewController()
|
25
|
+
print("hoge=\(inputViewController.hoge)")
|
26
|
+
:
|
27
|
+
}
|
28
|
+
```
|