如何隐藏MKAnnotationView标注?
问题描述:
我想隐藏一个AnnotationView而不用触摸这个引脚,是可能的吗? 谢谢!如何隐藏MKAnnotationView标注?
for (id currentAnnotation in self.mapView.annotations) {
if ([currentAnnotation isKindOfClass:[MyAnnotation class]]) {
}
}
答
你只是想标注泡沫消失,但保持脚?
如果是,则执行此操作:
for (id currentAnnotation in self.mapView.annotations) {
if ([currentAnnotation isKindOfClass:[MyAnnotation class]]) {
[self.mapView deselectAnnotation:currentAnnotation animated:YES];
}
}