How to define an annotation leader on a map?

I have a validation related application. When the user clicks on the meeting place on the map, a pop-up window is displayed and his name and address are displayed. At the same time, if the meeting point is within 1000 meters of the current location, a confirmation button will be displayed.

To a place where you can check, all I want is

when a popup is called up, a confirmation button is displayed. when the leader disappears, this button also disappears.

The show button show works well, but I do not know how to determine the display status. Is there any callback method that is called / hidden?

Thanks in advance!

+6
iphone annotations mkmapview
source share
2 answers

A call appears when you select an annotation — you can use the mapView:didSelectAnnotationView: method in the delegate to track this event. A leader hides when annotation is canceled - use the mapView:didDeselectAnnotationView: method to track this event.

+9
source share

As you can see here , this is the selected MKAnnotationView property, which says that If the property contains YES, a call bubble is displayed in the annotation view.

You can optionally implement an observer for this property to implement your functions.

+2
source share

All Articles