帮助呈现导航控制器

时间:2011-07-22 19:54:00

标签: objective-c ios uinavigationcontroller

我需要一些逻辑方面的帮助。 这就是我的应用程序的结构。

欢迎视图控制器>登录视图控制器>标签栏控制器> Feed导航控制器

因此,我使用presentmodal将Welcome View Controller转换为Login View Controller。 使用[self presentModalViewController:loginVC animated:YES];

所以现在我在Login View Controller中。但是如何导航到Tab Bar Controller,它将显示Feed导航控制器的rootviewcontroller?

我试过[self presentModalViewController:tabBarController animated:YES]; 但是我没有拿到导航控制器!

谢谢!

1 个答案:

答案 0 :(得分:0)

如果TabBarController是您的rootController,那么您的实现可能是错误的。

将欢迎屏幕作为您的ModalViewController导航添加到登录屏幕,然后执行必要的操作。

if (LoginSuccessful)
 // Dismiss modalview controller

这将把控制权带回你的rootController,你不需要从欢迎登录到登录栏以及类似的东西。

相关问题