I need to make an app that has the following:
- UINavigationController as a base. I’ll need to drill down and push and pop other screens.
- I need to be able to swap the bottom screen on the stack. The user should be able to (using a menu of some sorts) select different options which will alternate the first screen on the stack. From there they can drill down and push further screens on and pop them off accordingly.
Any ideas for how to achieve this?
I’ve tried using a single view controller as the rootViewController which manages the interchanging of other view controller but run into a couple of issues down the road with that. I can’t help but think there’s a more “proper” way to achieve this.
Much appreciated.
This should do what you need, noting that index 0 is your rootViewController and substituting whichever viewController you’d want to change in the second line: