<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.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/MKMapView/selectAnnotation(_:animated:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MKMapView(im)selectAnnotation:animated:"
  },
  "title" : "selectAnnotation(_:animated:)"
}
-->

# selectAnnotation(_:animated:)

Selects the specified annotation and displays a callout view for it.

```
func selectAnnotation(_ annotation: any MKAnnotation, animated: Bool)
```

## Parameters

`annotation`

The annotation object to select.

`animated`

If <doc://com.apple.documentation/documentation/Swift/true>, the map view animates the callout view into position.

## Discussion

If the specified annotation isn’t onscreen, and, therefore, doesn’t have an associated annotation view, this method has no effect.

---

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)