开发者

MKMapView GPS location question

I am a newbie.. I have a doubt in MapVi开发者_Go百科ew and CoreLocation. How to make the mapview to display "blue dot and circle animation" as in Locate Me action of Maps app? The solution may be very simple, but I don't have much idea about map in iPhone. Help me, pls.


Try this

yourMapView.showsUserLocation=YES;

Put this in your viewforAnnotation Delegate

if (annotation == mapView.userLocation) 
{ 
    //You can customize the blue dot current location annotation here
    return nil; 
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜