I have developed a walk app that can record distance, on iOS7, iOS8, the distance is mostly fine although sometimes not accurate, but on iOS9.0, the distance often too large, so I check
- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)
Locations method, and find some time get locations like this: A、B、C, but coordinate of C is equal to A, which i think is weird
I find startUpdatingLocation
called every seconds, after get rid of it , it gets better, but still happens
here is the demo source code
对于ios 9,必须设置allowBackgroundLocationUpdates。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.