在下面的应用程序中,您可以看到我当前启动应用程序的设置,具体取决于用户是否登录,不同的uiviewcontroller被添加为主应用程序的子视图[窗口addsubview:[loggedoutcontroller视图]];
我的问题是在-view1(登录屏幕)中,一旦用户尝试登录并成功,如何返回到根级别的主应用程序,而不是现在加载loggedout uiviewcontroller,而是加载到loggedin uiviewcontroller?我不清楚如何交流Accross。
MainApplication
- UIViewController (Logged Out)
-UINavController
-View1 (Login Screen)
-View1a (Register Screen)
- UIViewController (Logged In)
-UITabBarController
-View1 (Settings)
-UINavController (Handle edit Profile Settings)
- View 1
-View 1a
-View 1b
-View 1c
-View2