如何删除由 CLLocationManager 发送的缓存数据以及如何提高其准确性。每次我启动应用程序时,它都会给我缓存数据并在一段时间后更新它。我已经看到了几个线程,但我无法获得具体的 sol .谁能提供我的代码?我正在使用以下方法获取位置数据....
- (void)locationManager:(CLLocationManager *)manager
didUpdateToLocation:(CLLocation *)newLocation
fromLocation:(CLLocation *)oldLocation
我在这里设置了代表和准确性......
- (void)viewDidLoad {
[super viewDidLoad];
bestEffortAtLocation = nil;
latLocationArray = [[NSMutableArray alloc]init];
longLocationArray = [[NSMutableArray alloc]init];
locationManager =[[CLLocationManager alloc]init];
locationManager.delegate = self;
locationManager.distanceFilter = kCLDistanceFilterNone;
locationManager.desiredAccuracy = kCLLocationAccuracyBest;
[locationManager startUpdatingLocation];
}
我也可以使用 CLLocationManager 来计算人行进的距离吗?