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

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -