关于MKMapView 显示自己位置的问题
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
{
MKCoordinateSpan theSpan;
//地图的范围 越小越精确
theSpan.latitudeDelta = 0.01;
theSpan.longitudeDelta = 0.01;
MKCoordinateRegion theRegion ;
theRegion.center = newLocation.coordinate;
theRegion.span = theSpan;
[self.mapView setRegion:theRegion animated:YES];
}