Instance Property

canShowCallout

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

Declaration

@property(nonatomic) BOOL canShowCallout;

Discussion

If the value of this property is YES, 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 enabled property is set to NO. The callout also displays any custom callout views stored in the leftCalloutAccessoryView and rightCalloutAccessoryView properties.

If the value of this property is NO, 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 enabled property.

See Also

Managing Callout Views

leftCalloutAccessoryView

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

rightCalloutAccessoryView

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

detailCalloutAccessoryView

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

leftCalloutOffset

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

rightCalloutOffset

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