tags:

views:

225

answers:

1

Hello

How can I add the "Pulsating blue circle" in my gps application. Currently i am fetching my current location by CCLocationManager.

I am using mapView.showsUserLocation = True, but this only display a pin at my current location.

How can i get that "blue circle" as in the default maps app.

update: many app does this. for example - Realtor.com

Thanks

+1  A: 

Implement the delegate method:

- (MKAnnotationView *)mapView:(MKMapView *)mv viewForAnnotation: (id<MKAnnotation>)annotation

and return nil if if (annotation == mv.userLocation). This tell the MKMapView to use whatever standard annotation it deems appropriate.

drewh
Thank You! Thank You! Thank You! .... its working .. but having a little problem.. it does not pulsating after a while .. as in the default maps app.
Saurabh
Not sure about that...are you running on the simulator? Perhaps if you try on the device.
drewh