Instance Method

deselectAnnotation(_:animated:)

Deselects the specified annotation and hides its callout view.

Declaration

func deselectAnnotation(_ annotation: MKAnnotation?, animated: Bool)

Parameters

annotation

The annotation object to deselect.

animated

If true, the callout view is animated offscreen.

See Also

Managing Annotation Selections

var selectedAnnotations: [MKAnnotation]

The annotations that are currently selected.

func selectAnnotation(MKAnnotation, animated: Bool)

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