teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

追加の質問への回答

2015/11/10 02:10

投稿

fuzzball
fuzzball

スコア16733

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
+ ```