开发者

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 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜