我试图在不触摸引脚的情况下隐藏 AnnotationView,这可能吗? 谢谢!
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];
}
}
关于iphone - 如何隐藏 MKAnnotationView 标注?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2918154/