Put this in the method where you get updated location
Code:
MKCoordinateRegion region;
region.center=location.coordinate;
//Set Zoom level using Span
MKCoordinateSpan span;
span.latitudeDelta=.002;
span.longitudeDelta=.002;
region.span=span;
[mapView setRegion:region animated:YES];
__________________
iPhone 2G 8Gb 3.1.2 JB, 3G 16Gb 3.1.2 JB, 3GS 16 Gb 3.1.2 JB
MB5,1 C2D 2GHz 2GB RAM
Mac OS X 10.5.8
|