回答編集履歴
5
修正
answer
CHANGED
@@ -19,4 +19,5 @@
|
|
19
19
|
```swift
|
20
20
|
let navi = storyboard?.instantiateViewControllerWithIdentifier("Navigation_StoryboardID") as! UINavigationController
|
21
21
|
presentViewController(navi, animated: true, completion: nil)
|
22
|
+
|
22
23
|
```
|
4
修正
answer
CHANGED
@@ -12,4 +12,11 @@
|
|
12
12
|
> self.storyboard!.instantiateViewControllerWithIdentifier
|
13
13
|
|
14
14
|
という書き方は`Storyboard`が違う場合や、`Segue`で結ばれていない場合に使用します。
|
15
|
-
結ばれていて直接呼んでもいいですが、、、
|
15
|
+
結ばれていて直接呼んでもいいですが、、、
|
16
|
+
|
17
|
+
|
18
|
+
`UINavigationController`付きの`ModalView`へコードで遷移させる場合は以下の様になります。
|
19
|
+
```swift
|
20
|
+
let navi = storyboard?.instantiateViewControllerWithIdentifier("Navigation_StoryboardID") as! UINavigationController
|
21
|
+
presentViewController(navi, animated: true, completion: nil)
|
22
|
+
```
|
3
修正
answer
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
`Segue`の形状を見る限りだと`Push`で遷移したいようにみえます、その場合は遷移先に`NavigationController`を付ける事は不要です。
|
2
|
-
※自分に`NavigationController` が付いている必要があります。
|
2
|
+
※自分に`NavigationController` が付いている必要がありますが、この場合付いていないのでこのままだと落ちると思います。
|
3
3
|
|
4
4
|
`Modal`表示(NavigationController付き)をしたい場合はそのように結び付けます。
|
5
5
|
|
2
修正
answer
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
`Segue`の形状を見る限りだと`Push`で遷移したいようにみえます、その場合は遷移先に`NavigationController`を付ける事は不要です。
|
2
2
|
※自分に`NavigationController` が付いている必要があります。
|
3
3
|
|
4
|
-
`Modal`表示をしたい場合はそのように結び付けます。
|
4
|
+
`Modal`表示(NavigationController付き)をしたい場合はそのように結び付けます。
|
5
5
|
|
6
6
|
|
7
7
|
遷移する時`Segue`の名前で呼び出すには以下の様に書きます。
|
1
修正
answer
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
`Segue`を見る限りだと`Push`で遷移したいようにみえます、その場合は遷移先に`NavigationController`を付ける事は不要です。
|
1
|
+
`Segue`の形状を見る限りだと`Push`で遷移したいようにみえます、その場合は遷移先に`NavigationController`を付ける事は不要です。
|
2
|
+
※自分に`NavigationController` が付いている必要があります。
|
2
3
|
|
3
4
|
`Modal`表示をしたい場合はそのように結び付けます。
|
4
5
|
|