我登录了系统的用户时,提出上述VC根视图控制器的导航控制器用户注册时,我希望他们要经过一个教程,本教程是已经出现在HomeVC以几种不同的方式。我不希望创建教程的一个克隆,并把它贴在注册过程中,我的感觉是很容易的出路..寻找最好的做法:)如何从另一个导航控制器
所以注册后,这是我什么做
//0. Currently in "Signup" Nav stack
//1. init VCs for new nav stack
//2. push tutorial onto HomeVC nav w/o animation
//3. present stack with HomeVC below Tutorial, but tutorial is what animates in since in on top?
//@1.
let HomeVC = UIStoryboard(name: "Home", bundle: nil).instantiateViewController(withIdentifier: "HomeViewNavigationController")
let TutorialVC = UIStoryboard(name: "Tutorial", bundle: nil).instantiateViewController(withIdentifier: "TutorialViewController")
//@2.
HomeVC.navigationController?.pushViewController(TutorialVC, animated: false);
//@ 3.
self.present(HomeVC, animated: true)
问题是,“HomeVC”将首先闪烁,然后它将动画“TutorialVC”。
相当肯定我只是构造此相当差, 预先感谢
你的意思profileSettupVC或TutorialVC? – 3stud1ant3
@ 3stud1ant3对不起,我的意思是TutorialVC。刚刚编辑 –