rightCalloutAccessoryView
The view to display on the right side of the standard callout.
Declaration
var rightCalloutAccessoryView: UIView? { get set }var rightCalloutAccessoryView: NSView? { get set }Discussion
This property is nil by default. Typically, you use the right callout view to link to more detailed information about the annotation. In an iOS app, a common view to specify for this property is a button object with a type of UIButton.ButtonType.detailDisclosure.
In an iOS app, if the view you specify is also a descendant of the UIControl class, you can use the map view’s delegate to receive notifications when a person taps your control. If it doesn’t descend from UIControl, your view is responsible for handling any touch events within its bounds.
In a macOS app, the callout view’s view controller can implement an action method that responds when a user clicks the control in a callout view.