title: iOS CLLocationManagerDelegate didUpdateToLocation is not being called
body: <p>I'm creating an app that uses core location and this is my code:</p>
  
  <p>the .h :</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import &lt;CoreLocation/CoreLocation.h&gt;    
  @interface ViewController : UIViewController
  &lt;CLLocationManagerDelegate&gt;    
  @property(strong,nonatomic) CLLocationManager *manager;    
  @end
  </code></pre>
  
  <p>the .m :</p>
  
  <pre><code>#import "ViewController.h"
  #import &lt;CoreLocation/CoreLocation.h&gt;
  @interface ViewController ()
  @end
  @implementation ViewController
  @synthesize manager;
  - (void)didReceiveMemoryWarning {
      [super didReceiveMemoryWarning];
  }
  - (void)viewDidLoad
  {
      [super viewDidLoad];
      if (!self.manager)
      {
          self.manager=[CLLocationManager new];
      }
      self.manager.delegate = self;
      self.manager.desiredAccuracy = kCLLocationAccuracyBestForNavigation;
      [self.manager startUpdatingLocation];
  }
  - (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations
  {
      CLLocation * currentLocation = (CLLocation *)[locations lastObject];
      NSLog(@"Location: %@", currentLocation);
      if (currentLocation != nil)
      {
          NSLog([NSString stringWithFormat:@"%.8f", currentLocation.coordinate.latitude]);
          NSLog([NSString stringWithFormat:@"%.8f", currentLocation.coordinate.longitude]);
      }
  }
  @end
  </code></pre>
  
  <p>the problem is <code>didUpdateToLocation</code> is not being called.
  I tried putting a breakpoint inside of it and nothing happened. </p>