Segue
の形状を見る限りだとPush
で遷移したいようにみえます、その場合は遷移先にNavigationController
を付ける事は不要です。
※自分にNavigationController
が付いている必要がありますが、この場合付いていないのでこのままだと落ちると思います。
Modal
表示(NavigationController付き)をしたい場合はそのように結び付けます。
遷移する時Segue
の名前で呼び出すには以下の様に書きます。
swift
1performSegueWithIdentifier("SegueIdentifier", sender: nil)
self.storyboard!.instantiateViewControllerWithIdentifier
という書き方はStoryboard
が違う場合や、Segue
で結ばれていない場合に使用します。
結ばれていて直接呼んでもいいですが、、、
UINavigationController
付きのModalView
へコードで遷移させる場合は以下の様になります。
swift
1let navi = storyboard?.instantiateViewControllerWithIdentifier("Navigation_StoryboardID") as! UINavigationController
2presentViewController(navi, animated: true, completion: nil)
3
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/08/04 13:33 編集