【发布时间】:2012-01-07 06:01:14
【问题描述】:
我在mapView中有4-5种不同的注解类。 使用以下代码,我希望只有 AnnotationType1 应该响应 for 循环。
for (AnnotationType1* annotation in mymap.annotations)
{
NSLog(@"annotation class is %@", [annotation class]);
}
但从控制台可以看出,我也有其他课程。
annotation class is AnnotationType1
annotation class is AnnotationType2
annotation class is AnnotationType3
annotation class is AnnotationType4
仅对说 AnnotationType1 注释执行操作的最佳方式是什么?
【问题讨论】:
标签: iphone ios filter mkmapview mkannotation