ios - How to pass data to a programmatically created child view controller -


In my app, I have created a child view controller that I have installed with a storyboard ID and then programmatically I add this child view to the UICrol view so I can not create a container view in the storyboard. What I still need to do is: I have to pass the data to the child's chancellor. I know how to pass data when using a seagull for the VC, but how do I complete this operation in this case?

The controller that you add to the child, has a child in the ViewControllers property that has any child Controller If you have only one child, you can refer it to parents,

  SomeClass * child = self.childViewControllers [0]; Child.someProperty = self.propertyIWantToPass;    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -