mluton / EmbeddedSwapping

Demonstration of how to make a custom container view controller manage multiple child view controllers using storyboards.
MIT License
208 stars 30 forks source link

Navigating from one child to another #13

Open abbeyjackson opened 9 years ago

abbeyjackson commented 9 years ago

Hi Michael, Thank you for posting this easy to understand straight forward method for using container views with multiple view controllers.

What I would like to know however, is how to navigate from child controller to child controller using buttons on the child controllers, not a button on the root view controller.

Can you help me get on the right track? So far I have not been able to figure it out.

screen shot 2015-09-17 at 12 12 02 am
mluton commented 8 years ago

It's been a while since I've looked at this but you might want to look into delegates to call a method on the root view controller from a child. I remember doing something similar to this in the delegate branch of this project a while back. Hopefully, that will help.

https://github.com/mluton/EmbeddedSwapping/tree/delegates