Instance Property

canShowCallout

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

Declaration

var canShowCallout: Bool { get set }

Discussion

If the value of this property is true, a standard callout bubble is shown when the user taps a selected annotation view. The callout uses the title and subtitle text from the associated annotation object. If there is no title text, though, the annotation view is treated as if its isEnabled property is set to false. The callout also displays any custom callout views stored in the leftCalloutAccessoryView and rightCalloutAccessoryView properties.

If the value of this property is false, the value of the title and subtitle strings are ignored and the annotation view remains enabled by default. You can still disable the view explicitly using the isEnabled property.

See Also

Managing Callout Views

var leftCalloutAccessoryView: UIView?

The view to display on the left side of the standard callout bubble.

var rightCalloutAccessoryView: UIView?

The view to display on the right side of the standard callout bubble.

var detailCalloutAccessoryView: UIView?

The detail accessory view to be used in the standard callout.

var leftCalloutOffset: CGPoint

The offset in points from the middle-left of the annotation view.

var rightCalloutOffset: CGPoint

The offset in points from the middle-right of the annotation view.