开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜