I use removeAnnotations to remove my annotations from mapView but same it remove user location ann. How can I prevent this, or how to get user ann
removeAnnotations
mapView
If your user location is kind of class of MKUserLocation, use isKindOfClass to avoid removing user location annotation.
MKUserLocation
isKindOfClass
if (![annotation isKindOfClass:[MKUserLocation class]]) { }
Else you can set a flag to recognize the kind of your annotations in – mapView:viewForAnnotation:.
– mapView:viewForAnnotation: