<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.2.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKMapViewDelegate/mapView(_:didDeselect:)-yo7q",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(pl)MKMapViewDelegate(im)mapView:didDeselectAnnotationView:"
  },
  "title" : "mapView(_:didDeselect:)"
}
-->

# mapView(_:didDeselect:)

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

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

## Parameters

`mapView`

The map view containing the annotation view.

`view`

The deselected annotation view.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)