How to Hide MKAnnotationView Callout?
Asked Answered
C

1

14

i'm trying to hide an AnnotationView without touching the pin, is the possible? Thanks!

for (id currentAnnotation in self.mapView.annotations) {        
if ([currentAnnotation isKindOfClass:[MyAnnotation class]]) { 
    } 
}
Clarettaclarette answered 27/5, 2010 at 2:40 Comment(0)
O
31

Do you just want to make the callout bubble go away but keep the pin?
If yes, then do this:

for (id currentAnnotation in self.mapView.annotations) {        
    if ([currentAnnotation isKindOfClass:[MyAnnotation class]]) { 
        [self.mapView deselectAnnotation:currentAnnotation animated:YES];
    } 
}
Overspread answered 27/5, 2010 at 3:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.