views:

514

answers:

1

i am using map kit.i want to know that how we can get current user location.the mapkit shows blue dot at current user location.i want to do something like this.the user location is showed on map.i have button which on clicking again get the current user location and shows the blue dot there.do i need to use location manager.or just call the mapView.showUserLocation=YES; on button's click event?

A: 

When you want to show the current user location simply write

[mapView setShowsUserLocation:YES];

Niels Castle