Как скрыть выноску MKAnnotationView?

Я пытаюсь скрыть AnnotationView, не касаясь булавки, возможно? Спасибо!

for (id currentAnnotation in self.mapView.annotations) {        
if ([currentAnnotation isKindOfClass:[MyAnnotation class]]) { 
    } 
}

Ответы

Ответ 1

Вы просто хотите, чтобы пузырь выноски исчез, но держите штырь?
Если да, то сделайте следующее:

for (id currentAnnotation in self.mapView.annotations) {        
    if ([currentAnnotation isKindOfClass:[MyAnnotation class]]) { 
        [self.mapView deselectAnnotation:currentAnnotation animated:YES];
    } 
}