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.