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

回答編集履歴

1

SecondViewControllerのスーパークラスについて追記。

2016/02/17 07:29

投稿

fuzzball
fuzzball

スコア16733

answer CHANGED
@@ -1,4 +1,17 @@
1
1
  `ViewController`と`SecondViewController`に書いてあるコードがあれば教えて下さい。
2
2
 
3
3
  参考までに、こちらで作った`view1 Scene`の階層を貼っておきますので比べてみて下さい。
4
- ![view1 Scene](404c7d0eca351a93d6363d62222451f3.png)
4
+ ![view1 Scene](404c7d0eca351a93d6363d62222451f3.png)
5
+
6
+ #追記
7
+ もし、SecondViewControllerのスーパークラスが`UINavigationController`になっているなら、
8
+
9
+ ```objectivec
10
+ @interface SecondViewController : UINavigationController
11
+ ```
12
+
13
+ `UIViewController`に修正して下さい。
14
+
15
+ ```objectivec
16
+ @interface SecondViewController : UIViewController
17
+ ```