How to Hide MKAnnotationView Callout?

前端 未结 1 1998

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

for (id currentAnnotation in self.mapView.annotations) {        
if ([cu         


        
相关标签:
1条回答
  • 2021-02-13 10:13

    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];
        } 
    }
    
    0 讨论(0)
提交回复
热议问题