Answers

Question and Answer:

  Home  iOS Developer

⟩ What is difference between "protocol" and "delegate"?

protocol is used the declare a set of methods that a class that "adopts" (declares that it will use this protocol) will implement.

Delegates are a use of the language feature of protocols. The delegation design pattern is a way of designing your code to use protocols where necessary.

 133 views

More Questions for you: