Home > Software engineering >  How to present navigation controller from a seperate viewcontroller
How to present navigation controller from a seperate viewcontroller

Time:06-23

I am building an Onboarding/Welcome screen for my app, but the problem is that my app has a tab bar, so my Onboarding somehow interferes with that and doesn't look like a seamless interface. My solution is to put the Onboarding thing on a separate view controller and once a user is done with that screen, it presents the navigation controller and all of ITS views. I have done some research on this, but I'm still lost. If you have any other ideas, or have solutions, please let me know, thanks.

Here is what I want to achieve: This

CodePudding user response:

In order to do this in a way that looks nice and works well you should not be pushing or presenting the tab bar but updating the root view controller of the whole window.

I can’t provide a code example right now but there will be several online sources for this.

You should be changing the view controller so it essentially toggles the app between “logged in” and “logged out”.

That way you don’t have to worry about how to get from one to the other. They act separately just dealing with their own stuff.

  • Related