1. A protocol is a way to extend a method for a class that has a source code.
2. The agreement is the life of a series of methods, which is equivalent to a list of tasks, which specifies what is to be done, but the implementation (that is, implementation) is implemented by the class that obeys the agreement. So the protocol only. h files, and you cannot define variables
3. The definition of the agreement is the beginning of the @protocol, the agreement of the name <> (the agreement to obey) is written in <>, the multiple protocols are separated by commas, and the content in the parent agreement is the same as the sub-Protocol, and ends with @end.
The following attachment is a small example of the agreement, you can deepen the understanding of the agreement, after reading must be more practice, in order to fully grasp.
This article is from the "A Mao" blog, please be sure to keep this source http://winann.blog.51cto.com/4424329/1436076