Instance Property


The complete list of annotations associated with the receiver.


@property(nonatomic, readonly) NSArray<id<MKAnnotation>> *annotations;


The objects in this array must adopt the MKAnnotation protocol. If no annotations are associated with the map view, the value of this property is an empty array.

See Also

Annotating the Map

- addAnnotation:

Adds the specified annotation to the map view.

- addAnnotations:

Adds an array of annotation objects to the map view.

- removeAnnotation:

Removes the specified annotation object from the map view.

- removeAnnotations:

Removes an array of annotation objects from the map view.

- annotationsInMapRect:

Returns the annotation objects located in the specified map rectangle.