开发者

MKMapView removeAnnotation is not removing the selected annotation

When I call removeAnnotation and pass it a pointer to the annotat开发者_StackOverflowion I had added, it is not removing the annotation... Is this because it had made a copy of the annotation when I added it?

Thanks Deshawn


You could try this

nsarray *oldAnnotations=[self.mapview annotations];
[self.mapview removeAnnotations:oldAnnotations];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜