Implementing MKMapView didRemoveAnnotationViews method?
There's a method of MKMapViewDelegate protocol:
- (void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views
Which I'm using for custom pin dropping animations, though there's no method for "remove" (didRemoveAnnotationViews) action to implement custom animations when annotation views are being removed.
Has anyone figured out a workaround for that?
Thanks!开发者_StackOverflow社区
[mapview deselectAnnotation:[mapview.selectedAnnotations objectAtIndex:0] animated:YES];
or
[mapview deselectAnnotation:calloutMapAnnotationView.annotation animated:YES]; where calloutMapAnnotationView is the callout bubble object of selected custm pin.
精彩评论