Contents

canShowCallout

A Boolean value that indicates whether the annotation view is able to display extra information in a callout.

Declaration

var canShowCallout: Bool { get set }

Discussion

If the value of this property is true, the map view shows a standard callout when the user taps a selected annotation view. The callout uses the title and subtitle text from the associated annotation object. If there’s no title text, the map view treats the annotation view as if its isEnabled property is false. The callout also displays any custom callout views in the leftCalloutAccessoryView and rightCalloutAccessoryView properties.

If the value of this property is false, the map view ignores the value of the title and subtitle strings, and the annotation view remains in an enabled state by default. You can still disable the view explicitly using the isEnabled property.

See Also

Managing callout views