How is it possible to remove all annotation on a mapview except for the current userLocation?
I tried this:
But it does not work :-( Is there a way to detect/compare the current user location?
I tried this:
Code:
NSMutableArray *arr = [NSMutableArray alloc] initWithArray[startMap annotations]];
for (MKAnnotation *a in [mapView annotations]) {
if(a != mapView.userLocation) {
[arr addObject:a];
}
}
[mapView removeAnnotations:arr];
But it does not work :-( Is there a way to detect/compare the current user location?