开发者

Help in presenting navigation controller

开发者 https://www.devze.com 2023-03-22 13:32 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消