Instance Method

selectAnnotation(_:animated:)

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

Declaration

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

Parameters

annotation

The annotation object to select.

animated

If true, the callout view is animated into position.

Discussion

If the specified annotation is not onscreen, and therefore does not have an associated annotation view, this method has no effect.

See Also

Managing Annotation Selections

var selectedAnnotations: [MKAnnotation]

The annotations that are currently selected.

func deselectAnnotation(MKAnnotation?, animated: Bool)

Deselects the specified annotation and hides its callout view.