Im currently strugglung with annotations. how can i prevent the AnnotationLable for the blue GPS-point. ( Here is an Image )
- (MKAnnotationView *) mapView:(MKMapView *)mapView viewForAnnotation:(MKAnnotation *) annotation{
if (annotation == mapView.userLocation) {
return nil;
}
the function above isnt working, and i realized that i can't compare two coordinates.
Any hint is welcome. Simon
You are comparing an annotation to a location in your if.
Are you trying to supress the current location annotation for a reason? It is common UI with map kit and the consistency helps users understand the blue dot.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.