Contents

mapView(_:didSelect:)

Tells the delegate when the user selects one or more of its annotation views.

Declaration

optional func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView)

Parameters

  • mapView:

    The map view containing the annotation view.

  • view:

    The selected annotation view.

Discussion

You can use this method to track changes in the selection state of annotation views.

See Also

Selecting annotations and annotations views