title: Center maps in iOS Programming
body: <p>How do we follow the user in maps. I want to have the blue dot (user location) be in the center of the map, But I also what to allow the user to zoom in and zoom out and then after a couple seconds zoom in back in the user location.</p>
  
  <p><strong>My Educated Guess for the Solution:</strong> We detect if the user is zooming in or out, after three seconds of no zooming in or out detection, we starting follow the user :). Your HELP would be awesome :)  </p>
  
  <p>This code zoom in the user location but doesn't delay for zoom in and out:</p>
  
  <pre><code>     - (void)locationManager:(CLLocationManager *)manager
          didUpdateToLocation:(CLLocation *)newLocation
                fromLocation:(CLLocation *)oldLocation {
  
    MKCoordinateRegion userLocation = MKCoordinateRegionMakeWithDistance(newLocation.coordinate, 1500.0, 1500.0); [mapView setRegion:userLocation animated:YES];
  
  
      }
  </code></pre>