Recently, Container View was used to create its own sub-Controller in the main View Controller. However, if you encounter problems, you do not know how to use the code to obtain the View Controller attached to the Controller View.
I wanted to get the View Controller attached to it, set the proxy in it, and then implement the modern management method in the main View Controller. I found a lot of information. The solution is as follows.
Create a. h and. m file, associate it with the view Controller attached to the Container View, and set the proxy in it.
Click Segue to set the Identifier Inheritance Method in the main View Controller.
-(Void) prepareForSegue :( UIStoryboardSegue *) segue sender :( id) sender
Implement the following code.
In this way, you can get the Controller of the View Controller to jump to the segue, and then set the proxy for it to call each other.