iOs (CoreLocation) - locationManager:didUpdateLocations: not working as expected
问题 I wrote a simple iPhone app that retrieves location information and simply display them. I want to increment the distanceTraveled variable every time the position changes. My problem is that in the method locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations , locations.count is always equal to one. I thought it would add an element to the array every time the method is called, but it seems not like that... I am running the application in the simulator (I don't