I didn't find any reason behind making MKAnnotation as a protocol. Looking for answer.
As it seems like an Abstract class to me.
Thanks a bunch.
I didn't find any reason behind making MKAnnotation as a protocol. Looking for answer.
As it seems like an Abstract class to me.
Thanks a bunch.
Objective C does not have multiple inheritance.
Protocols allow implementation of a function(s) in classes that already have a different inheritance structure. Such as a protocol can be implemented by a ViewContoller, and often is. If MKAnnotation was an abstract class, the implementation of the functions would have to be in a class that inherits from MKAnnotation.