title: Get location about didUpdateLocations and didUpdateToLocation never call on ios 5.1 and ios6
body: <p>I have a question about location.</p>
  
  <p>I need to get location of latitude and longitude at iOS 5.1 and iOS 6 upper.</p>
  
  <p>But I write NSLog in didUpdateLocations and didUpdateToLocation function . </p>
  
  <p>I had not saw the log show in console.</p>
  
  <p>I am use simulate set location . I am test latitude value is 25.317973, longtitude value is 121.538161 (D1).</p>
  
  <p>Then I am test value is ( 25.917973, 121.538161 ) (D2).</p>
  
  <p>D1 and D2 distance is more than 10 meter;</p>
  
  <p>But I never saw the log show in console.</p>
  
  <p>I attach my code below:</p>
  
  <p>my .h file</p>
  
  <pre><code>#mport &lt;GoogleMaps/GoogleMaps.h&gt;
  #import &lt;CoreLocation/CoreLocation.h&gt;
  #import &lt;Corelocation/CLLocationManagerDelegate.h&gt; 
  
  @interface LocationMapViewController : AbstractViewController&lt;     CLLocationManagerDelegate, GMSMapViewDelegate &gt;
  @property (strong, nonatomic) CLLocationManager *locationManager;
  @end
  </code></pre>
  
  <p>my .m file</p>
  
  <pre><code>   - (void)viewDidLoad
         {
             [super viewDidLoad];
  
   if( _locationManager == nil )
      {
          _locationManager =  [CLLocationManager new];
          _locationManager.delegate = self;
  
          _locationManager.desiredAccuracy = kCLLocationAccuracyBest;
          _locationManager.distanceFilter = 10.0f;
          [_locationManager startUpdatingHeading];
  
      }
  
  -(void) locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray     *)locations
  {
      NSLog(@"==latitude %f, longitude %f", [[locations objectAtIndex:([locations     count]-1)] coordinate].latitude , [[locations objectAtIndex:([locations count]-1)]     coordinate].longitude);
  }
  
  -(void) locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation     *)newLocation fromLocation:(CLLocation *)oldLocation
  {
       NSLog(@"====latitude %f, longitude %f", newLocation.coordinate.latitude,     newLocation.coordinate.longitude);
  }
  </code></pre>
  
  <p>Have anyone know what's wrong with my code?</p>
  
  <p>thank you very much</p>