MKAnnotation protocol is used to provide annotation-related information to a map view. To use this protocol, you adopt it in any custom objects that store or represent annotation data. Each object then serves as the source of information about a single map annotation and provides critical information, such as the annotation’s location on the map. Annotation objects do not provide the visual representation of the annotation but typically coordinate (in conjunction with the map view’s delegate) the creation of an appropriate
MKAnnotationView object to handle the display.
- iOS 3.0+
- macOS 10.9+
- tvOS 9.2+
- watchOS 2.0+
An object that adopts this protocol must implement the
coordinate property. The other methods of this protocol are optional.