在我的应用程序中,我显示了一个用于登录的ViewController。一旦用户成功登录,我希望将其从NavigationController历史记录中完全删除,并加载用户帐户视图控制器。
这可以使用Three20库的TTNavigator模块来完成吗
发布于 2011-02-12 20:47:50
是的,这很简单。
首先,初始化你的主rootView (例如tabBar)。然后在此基础上登录
[navigator openURLAction:[TTURLAction actionWithURLPath:@"pr://tabBar"]];
// now show the login page!
[navigator openURLAction:[TTURLAction actionWithURLPath:@"pr://accounts"]];
[navigator.window makeKeyAndVisible];现在,如果您完成了登录,只需从堆栈中删除视图即可。
https://stackoverflow.com/questions/4623901
复制相似问题