Instance Method

mapView:didAddAnnotationViews:

Tells the delegate that one or more annotation views were added to the map.

Declaration

- (void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray<MKAnnotationView *> *)views;

Parameters

mapView

The map view that added the annotation views.

views

An array of MKAnnotationView objects representing the views that were added.

Discussion

By the time this method is called, the specified views are already added to the map.

See Also

Managing Annotation Views

- mapView:viewForAnnotation:

Returns the view associated with the specified annotation object.

- mapView:annotationView:calloutAccessoryControlTapped:

Tells the delegate that the user tapped one of the annotation view’s accessory buttons.

- mapView:clusterAnnotationForMemberAnnotations:

Asks the delegate to provide a cluster annotation object for the specified annotations.