开发者

pulsating blue circle and dot in mapkit - iPhone SDK

开发者 https://www.devze.com 2022-12-29 06:29 出处:网络
How can I add the \"Pulsating blue circle\" in my gps application. Currently i am fetching my current location by CCLocationManager.

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 c开发者_Go百科ircle" 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{

}
0

精彩评论

暂无评论...
验证码 换一张
取 消