Map callout expansion animation like the one in Maps when the disclosure button is pressed
Question
When selecting the disclosure button on a callout, the callout animates to the slide over and expand into larger area with more information.
Besides making this component from scratch, does anyone know how to make annotation callouts do this?
Solution
According to this: http://www.cocoacontrols.com/controls/gikanimatedcallout , Apple is using a private API. The link above has code that tries to replicate what Apple does.
OTHER TIPS
you should use below delegate method
(void)mapView:(MKMapView *)mapview annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control
then in this delegate method, you should create an disclosure button. if(buttonType==disclosurebutton) then show custom UIView.
I think that will help overall.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow