Contents

selectAnnotation(_:animated:)

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

Declaration

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

Parameters

  • annotation:

    The annotation object to select.

  • animated:

    If 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.

See Also

Managing annotation selections