У меня есть 4-5 видов разных классов аннотаций в mapView. В следующем коде я ожидаю, что только 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?