How to present VC modally then segue to a VC that's embedded in a Navigation Controller

谁说我不能喝 提交于 2019-12-12 04:19:39

问题


My app flow is like this:

(1) The app launches you into a LogInViewController that is embedded in a NavigationController.

(2) Inside LogInViewController if runCount < 1 I want to present a set of tutorials VCs that are not embedded in a nav stack.

(3) You can tap "skip" or after swiping through the tutorial VCs you tap an "OK" button, all of which segue you back to LoginViewController.

The problem is that when you are segued back to LogInViewController there's no NavigationController.

What's the best way to approach this?


回答1:


The answer is really simple, rather than wiring up the buttons to my LogInViewController all I needed to do was wire them up to the NavagationController instead since it presents the LogInViewController



来源:https://stackoverflow.com/questions/34971707/how-to-present-vc-modally-then-segue-to-a-vc-thats-embedded-in-a-navigation-con

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!