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

Pass data between controllers #9

Closed pardnoj closed 10 years ago

pardnoj commented 10 years ago

I am trying to pass data from my view controller to child view controllers via container controller. How can I do that?

mluton commented 10 years ago

Sorry for the really delayed response. I created a branch which demonstrates how to use protocols and delegates and pass data from the outer most view controller to the embedded view controllers. The ContainerViewController feels a little weird now though since I'm setting the delegate in a couple of different places. But it should be enough to help you get going down the right path if you're not already.

Isuru-Nanayakkara commented 9 years ago

Just wanted to say thanks. This helped me a ton! :+1:

mluton commented 9 years ago

I appreciate the positive feedback. Glad it helped!