Instance Method

mapView(_:didDeselect:)

Tells the delegate that one of its annotation views was deselected.

Declaration

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

Parameters

mapView

The map view containing the annotation view.

view

The annotation view that was deselected.

Discussion

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

See Also

Selecting Annotation Views

func mapView(MKMapView, didSelect: MKAnnotationView)

Tells the delegate that one of its annotation views was selected.