Help in presenting navigation controller
I need help on some logic. This is how my application is structured.
Welcome View Controller > Login View Controller > Tab Bar Controller > Feed Navigation Controller
So, i used presentmodal for the transition of Welcome View Controller to Login View Controller.
using [self presentModalViewController:loginVC animated:YES];
So now i'm in Login View Controller. But how to i navigate to the Tab Bar Controller which will show the rootviewcontroller of the Feed Navigation Controller?
I tried [self presentModalViewController:tabBarController anim开发者_开发问答ated:YES];
But i'm not getting the navigation controller in it!
Thank you!
If TabBarController
is your rootController, then your implementation is probably wrong.
Have the Welcome Screen as your ModalViewController
and Navigate to LoginScreen, and perform necessary actions.
if (LoginSuccessful)
// Dismiss modalview controller
This will bring control back to your rootController, and you do not need to navigate from welcome to login to tab bar and stuff like that.
精彩评论