title: CLLocation didupdatetolocation not called
body: <p>Spent few days trying to solve this but unable to find any solutions that works. I have checked all the post on stackoverflow and tried all their solutions and nothing seems to be working for. I have also tried the apple test project for CLLocation which works fine for me. I used bits and pieces from the apple test project</p>
  
  <p><a href="https://developer.apple.com/library/ios/samplecode/LocateMe/Listings/README_md.html" rel="noreferrer">https://developer.apple.com/library/ios/samplecode/LocateMe/Listings/README_md.html</a></p>
  
  <p>But my code is not working at all. The DidupdateToLocation never gets called.</p>
  
  <p>Here is my code (in viewDidLoad)</p>
  
  <pre><code>_locationManager = [[CLLocationManager alloc] init];
  
  self.locationManager.delegate = self;
  
  
  
  // This is the most important property to set for the manager. It ultimately determines how the manager will
  
  // attempt to acquire location and thus, the amount of power that will be consumed.
  
  self.locationManager.desiredAccuracy = kCLLocationAccuracyBest;
  
  
  
  // Once configured, the location manager must be "started"
  
  //
  
  // for iOS 8, specific user level permission is required,
  
  // "when-in-use" authorization grants access to the user's location
  
  //
  
  // important: be sure to include NSLocationWhenInUseUsageDescription along with its
  
  // explanation string in your Info.plist or startUpdatingLocation will not work.
  
  //
  
  if ([self.locationManager respondsToSelector:@selector(requestWhenInUseAuthorization)]) {
  
      [self.locationManager requestWhenInUseAuthorization];
  
  }
  
  [self.locationManager startUpdatingLocation];
  
  
  
  [self performSelector:@selector(stopUpdatingLocationWithMessage:)
  
             withObject:@"Timed Out"
  
             afterDelay:30];
  </code></pre>
  
  <p>I have checked to make sure locationServicesEnabled is enabled.</p>
  
  <p>I have added NSLoationWhenInUseUsageDescription property to the info.plist file. Is there any other property I need to add or enable any services??</p>
  
  <p>I cannot for the love of god figure out what i have done wrong. Can some one please help me with this.</p>