Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to suppress the "Current Location" callout in map view

Tapping the pulsating blue circle representing the userLocation brings up a "Current Location" callout. Is there a way to suppress that?

like image 394
charudatta Avatar asked Nov 29 '11 23:11

charudatta


1 Answers

There's a property on the annotation view you can change, once the user location has been updated:

- (void)mapView:(MKMapView *)mapView didUpdateUserLocation:(MKUserLocation *)userLocation
{
    MKAnnotationView *userLocationView = [mapView viewForAnnotation:userLocation];   
    userLocationView.canShowCallout = NO;
}    
like image 128
jowie Avatar answered Sep 20 '22 15:09

jowie