In my application I created a container view(called ContainerViewController
) on the top of an another view(called GameViewController
,where I keep the game logic and api callbacks).I also have other views and an api class.My container view contains 3 views
and I am trying to pass some objects to one of my container view(VC1). Since GameViewController
is only connected to ContainerViewController
(meaning there is no segue
directly, so I can't use prepareforsegue and I can't use presentViewController
, since they childViewControllers
), I can't pass data.
I also tried just getting the values from my deserializer class(inside vc1). The problem with that was the VC1 gets called before.
my question is, how can I set values of VC1 from my callback inside the GameViewController
?
This is what my storyboard looks like:
Thank you.