简体   繁体   中英

pulsating blue circle and dot in mapkit - iPhone SDK

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

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.

if (annotation == Current Location){
return nil;

}else{

}

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM