What is protocol in iOS?
A protocol is a group of related properties and methods that can be implemented by any class.
Objective-C allows you to define protocols, which declare the methods expected to be used for a particular situation.
Lets understand this with the help of an example