回答編集履歴
1
SecondViewControllerのスーパークラスについて追記。
answer
CHANGED
@@ -1,4 +1,17 @@
|
|
1
1
|
`ViewController`と`SecondViewController`に書いてあるコードがあれば教えて下さい。
|
2
2
|
|
3
3
|
参考までに、こちらで作った`view1 Scene`の階層を貼っておきますので比べてみて下さい。
|
4
|
-

|
4
|
+

|
5
|
+
|
6
|
+
#追記
|
7
|
+
もし、SecondViewControllerのスーパークラスが`UINavigationController`になっているなら、
|
8
|
+
|
9
|
+
```objectivec
|
10
|
+
@interface SecondViewController : UINavigationController
|
11
|
+
```
|
12
|
+
|
13
|
+
`UIViewController`に修正して下さい。
|
14
|
+
|
15
|
+
```objectivec
|
16
|
+
@interface SecondViewController : UIViewController
|
17
|
+
```
|