EmptyStack
EmptyStack

Reputation: 51374

MKMapView GPS location question

I am a newbie.. I have a doubt in MapView 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.

Upvotes: 1

Views: 715

Answers (1)

ipraba
ipraba

Reputation: 16543

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

Upvotes: 3

Related Questions