Reputation: 1759
In my application i display a ViewController for Login. Once the user has logged in successfully I want to remove it completely from the NavigationController history and load the user account view controller.
Can this be done using TTNavigator module of Three20 library
Upvotes: 0
Views: 654
Reputation: 7641
Yes, this is easy.
First, init your main rootView (e.g. the tabBar). Then on top of that the login
[navigator openURLAction:[TTURLAction actionWithURLPath:@"pr://tabBar"]];
// now show the login page!
[navigator openURLAction:[TTURLAction actionWithURLPath:@"pr://accounts"]];
[navigator.window makeKeyAndVisible];
now if you finished logging in, just remove the view from the stack.
Upvotes: 3