Instance Method


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


optional func mapView(_ mapView: MKMapView, didAdd views: [MKAnnotationView])



The map view that added the annotation views.


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


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

See Also

Managing Annotation Views

func mapView(MKMapView, viewFor: MKAnnotation) -> MKAnnotationView?

Returns the view associated with the specified annotation object.

func mapView(MKMapView, annotationView: MKAnnotationView, calloutAccessoryControlTapped: UIControl)

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

func mapView(MKMapView, clusterAnnotationForMemberAnnotations: [MKAnnotation]) -> MKClusterAnnotation

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software