【问题标题】:How to Hide MKAnnotationView Callout?如何隐藏 MKAnnotationView 标注?
【发布时间】:2011-02-24 11:29:53
【问题描述】:

我正在尝试隐藏 AnnotationView 而无需触摸图钉,这可能吗? 谢谢!

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

【问题讨论】:

    标签: iphone sdk mkannotation mkannotationview callouts


    【解决方案1】:

    您是否只想让标注气泡消失但保留大头针?
    如果是,请执行以下操作:

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

    【讨论】:

      猜你喜欢
      • 2016-02-24
      • 1970-01-01
      • 1970-01-01
      • 2011-10-11
      • 2011-12-22
      • 2010-12-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多