title: iOS 8 Map Kit Obj-C Cannot Get Users Location
body: <p>I am working with Map Kit in iOS 8 using Obj-C NOT SWIFT. I cannot get the device location it is set a 0.00, 0.00 and I am getting the error:</p>
  
  <pre><code>Trying to start MapKit location updates without prompting for location authorization. Must call -[CLLocationManager requestWhenInUseAuthorization] or -[CLLocationManager requestAlwaysAuthorization] first.
  </code></pre>
  
  <p>I have implemented: ( I have tried only one at a time and no luck )</p>
  
  <pre><code>if(IS_OS_8_OR_LATER) {
      [self.locationManager requestWhenInUseAuthorization];
      [self.locationManager requestAlwaysAuthorization];
  }
  [self.locationManager startUpdatingLocation]; 
  </code></pre>
  
  <p>And in info.plist</p>
  
  <pre><code>NSLocationWhenInUseUsageDescription  :   App would like to use your location.
  NSLocationAlwaysUsageDescription  :  App would like to use your location.
  </code></pre>
  
  <p>I do get prompted to allow the app to use my location but after I agree nothing changes. The location is being showed as 0.00, 0.00.</p>
  
  <p>Code for displaying users location:</p>
  
  <pre><code>//Get Location
  self.locationManager = [[CLLocationManager alloc] init];
  self.locationManager.distanceFilter = kCLDistanceFilterNone;
  self.locationManager.desiredAccuracy = kCLLocationAccuracyBest;
  [self.locationManager startUpdatingLocation];
  
  MKCoordinateRegion region = { { 0.0, 0.0 }, { 0.0, 0.0 } };
  region.center.latitude = self.locationManager.location.coordinate.latitude;
  region.center.longitude = self.locationManager.location.coordinate.longitude;
  region.span.longitudeDelta = 0.005f;
  region.span.longitudeDelta = 0.005f;
  [mapView setRegion:region animated:YES];
  </code></pre>
  
  <p>Mike.</p>
  
  <p>**EDIT: View Answer Below.</p>