1

I have displayed multiple annotations with titles on MKMapView, How can I get the title of annotations in an array which are displayed on MkMapView ?

- (void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views {
 for (MKAnnotationView *annotationView in views) {
 NSMutableArray *annotationsTitles=[[NSMutableArray]];
 [annotationsTitles addObject:annotationView.annotation.title]
 annotationView.canShowCallout = NO;
}

I tried the below code unable to get the exact array.

Vicky iOS
  • 35
  • 11

1 Answers1

0

its not exactly same but u can get how to do that from these..

Reading off annotations of MKMapViews in NSArray

Community
  • 1
  • 1
krushnsinh
  • 874
  • 1
  • 10
  • 11