Agent Stage Summary
Methods that must be implemented @required
@optional, optional implementation-not enforced-if the implementation can get a special effect, if not implemented, does not affect the correct operation of the program
Ability to increase the flexibility of controls
1, abide by the agreement, pre-defined methods, not practice, the specific implementation of the agent is responsible for the work
< control's name +datasource> defined data-related methods
The name of the < control +delegate> defines an event-related method that is typically used to listen for events
2, Proxy method
1) The method name starts with the name of the control (without the class prefix) and facilitates the programmer to quickly find the required protocol method
2) The first parameter is self----means that in the protocol method, you can directly access the properties of the image, or call a method
3) The controller sends the data to the control (delegate), the return value of the proxy method
iOS Agent 02