title: How do I zoom an MKMapView to the user's current location
body: <p>I am trying to show the mkmapview to the users current location. They will display only city name. But they are not specify the exact users current location. I want to display the users exact location. Please give me any idea how to zoom the users current location.</p>
  
  <p><strong>GPSlocationAPPDelegate.m</strong></p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
      self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
      // Override point for customization after application launch.
      self.locationManager=[[CLLocationManager alloc]init];
      if([CLLocationManager locationServicesEnabled])
      {
          self.locationManager.delegate=self;
          self.locationManager.distanceFilter=1;
          [self.locationManager startUpdatingLocation];
      }
  
      self.viewController = [[AnimationViewController alloc] initWithNibName:@"AnimationViewController" bundle:nil];
      self.window.rootViewController = self.viewController;
      [self.window makeKeyAndVisible];
      return YES;
  }
  -(void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
  {
      double miles=12.0;
      double scalingFactor= ABS( cos(2 * M_PI * newLocation.coordinate.latitude /360.0) );
      MKCoordinateSpan span;
      span.latitudeDelta=miles/69.0;
      span.longitudeDelta=miles/(scalingFactor*69.0);
      MKCoordinateRegion region;
      region.span=span;
      region.center=newLocation.coordinate;
      [self.viewController.mapView setRegion:region animated:YES];
      self.viewController.mapView.showsUserLocation=YES;      
  }
  </code></pre>