Hi,
Looking at the MKMapView documentation, it seems like you have the annotations property to play with. It should be pretty simple to iterate through this and see what annotations you have :
for (id annotation in myMap.annotations) {
NSLog(@"%@", annotation);
}
You also have the userLocation
property which gives you the annotation representing the user's location. If you go through the annotations and remember all of them which are not the user location, you can then remove them using the removeAnnotations:
method :
NSMutableArray *toRemove = [NSMutableArray arrayWithCapacity:10];
for (id annotation in myMap.annotations)
if (annotation != myMap.userLocation)
[toRemove addObject:annotation];
[myMap removeAnnotations:annotation];
Hope this helps,
Sam