Contents

mapView(_:didAdd:)

Tells the delegate when the map view adds one or more annotation views to the map.

Declaration

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

Parameters

  • mapView:

    The map view that adds the annotation views.

  • views:

    An array of MKAnnotationView objects representing the views that the map view adds.

Discussion

By the time the map view calls this method, MapKit has added the specified views to the map.

See Also

Managing annotation views