use*_*711 14 iphone sdk callouts mkannotation mkannotationview
我试图隐藏AnnotationView而不接触引脚,可能吗?谢谢!
for (id currentAnnotation in self.mapView.annotations) {
if ([currentAnnotation isKindOfClass:[MyAnnotation class]]) {
}
}
Run Code Online (Sandbox Code Playgroud)
小智 30
你只是想让标注泡泡消失而保持销钉?
如果是,那么这样做:
for (id currentAnnotation in self.mapView.annotations) {
if ([currentAnnotation isKindOfClass:[MyAnnotation class]]) {
[self.mapView deselectAnnotation:currentAnnotation animated:YES];
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6022 次 |
| 最近记录: |