Instance Method

addAnnotations:

Adds an array of annotation objects to the map view.

Declaration

- (void)addAnnotations:(NSArray<id<MKAnnotation>> *)annotations;

Parameters

annotations

An array of annotation objects. Each object in the array must conform to the MKAnnotation protocol. The map view retains the individual annotation objects.

See Also

Annotating the Map

annotations

The complete list of annotations associated with the receiver.

- addAnnotation:

Adds the specified annotation 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.