data transfer of the Controller
the data transfer between controllers is mainly2kind of situation:Shun Chuan and reverse pass
1. Shun Chuan
direction of the controller's jump: A--C
direction of data transfer: A--C
how data is delivered : in theAof thePrepareforsegue:sender:method in accordance withSegueparameter AcquisitionDestinationviewcontroller,i.e. ControllerC,direct to the controllerCPassing Data
(to be inCof theViewdidloadmethod to get the data,to assign a value to the interface.UIControl)
2. Reverse Transmission
direction of the controller's jump: A--C
direction of data transfer: C--A
how data is delivered : LetAbecomeCthe agent, in theCcalled inAthe Proxy method,passing data through the parameters of the proxy method toA
the target controller passes the data to the source controller called the reverse pass. first, the source controller has a property or method to accept the data passed by the target controller. the source controller then calls this method or property assignment directly. The target controller then has a source controller that invokes the method or property from the source controller in the target controller.
Data transfer of the Controller