Tells the delegate that the user tapped one of the annotation view’s accessory buttons.
- iOS 3.0+
The map view containing the specified annotation view.
The annotation view whose button was tapped.
The control that was tapped.
Accessory views contain custom content and are positioned on either side of the annotation title text. If a view you specify is a descendant of the
UIControl class, the map view calls this method as a convenience whenever the user taps your view. You can use this method to respond to taps and perform any actions associated with that control. For example, if your control displayed additional information about the annotation, you could use this method to present a modal panel with that information.
If your custom accessory views are not descendants of the
UIControl class, the map view does not call this method.