Contents

setSelected(_:animated:)

Sets the selection state of the annotation view.

Declaration

func setSelected(_ selected: Bool, animated: Bool)

Parameters

  • selected:

    Contains the value True if the view displays in a selected state.

  • animated:

    Set to True if the map view animates the change in selection state.

Discussion

Dont call this method directly. An MKMapView object calls this method in response to user interactions with the annotation.

See Also

Related Documentation

Managing the selection state