title: Center region on userLocation in MKMapView
body: <p>I'm confused. I have an MKMapView, and in the viewDidLoad method I do:</p>
  
  <pre><code>- (void)viewDidLoad {
      mainDelegate = (PublicArtOmahaAppDelegate*)[[UIApplication sharedApplication]delegate]; 
  
      XMLController  *myXMLController = [[XMLController alloc] init]; 
      [myXMLController parse];
      mapView.showsUserLocation = YES;
      [self gotoLocation];
  
      // add annotations to map
      [self.mapView addAnnotations:mainDelegate.mapAnnotations];
      [myXMLController release];
  }
  </code></pre>
  
  <p>[self gotoLocation] calls:</p>
  
  <pre><code>- (void)gotoLocation
  {
      MKCoordinateRegion newRegion;
  
      CLLocation *userLocation = mapView.userLocation.location;
      float latitude = userLocation.coordinate.latitude;
      float longitude = userLocation.coordinate.latitude;
      newRegion.center.latitude = latitude;
      newRegion.center.longitude = longitude;
  
      [self.mapView setRegion:newRegion animated:YES];
  }
  </code></pre>
  
  <p>So I thought this should center the map on the user's location when the mapView loads and I was also planning on implementing a button on the screen that would manually call gotoLocation again to update the user's location when they want. </p>
  
  <p>But... when I run the app on a device it loads the map centered in a patch of ocean west of Africa which is apparently lat and long 0,0. What I thought was strange was that when I zoomed back to my real location, it had correctly placed my location as an annotation. So I guess there's something wrong with how I'm setting the user location in the gotoLocation? Anyone notice what I'm doing wrong?</p>