MVC patterns are widely used in OC, so-called MVC, model, view, controller
The controller controls the view through the model data, while the proxy method is the method used by the controller to control the view.
Conditions that are required to use a proxy:
1. Proxy agreement: The proxy method is declared inside
2. Views view defines proxy properties that meet the proxy protocol, such as @property (Nonatomic,weak) id<uitableviewdelegate>delegate;
3. Give the view one or several methods, the method inside the view's proxy view.delegate call its proxy method or in the system's own rendering method layoutsubviews inside call (if there is no such step, then the proxy method has no effect after implementation)
4. Set the controller (Director) as the proxy for the view, implement the @required (must implement) proxy method, can assign value to the view or change the view properties
The above key is the third step.
iOS deep understanding of MVC patterns-proxy methods