开发者

MKMapView GPS location question

开发者 https://www.devze.com 2023-01-30 17:42 出处:网络
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 ve

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

精彩评论

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