0
硬件: iPhone 6S 16GB 的iOS 9.1的iOS 9位置管理不回原來的位置
我試圖更新位置管理器應用程序的iOS從6.1到iOS 9.1。
LM的設置如下:
locationManager = [ [ CLLocationManager alloc ] init ] ;
self.locationManager.delegate = self;
self.locationManager.desiredAccuracy = kCLLocationAccuracyNearestTenMeters ;
[ self.locationManager requestWhenInUseAuthorization ] ;
[ self.locationManager startUpdatingLocation ] ;
- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations
{
CLLocation *newLocation = [locations lastObject];
NSLog(@「locations.count = %d」, locations.count) ;
}
該應用的設備上運行,並更新位置(經緯度和長),但 locations.count總是等於1。因此,我不能讓以前的位置來計算行駛距離或速度。
你能添加更多的信息,我不能當你移動什麼是你的問題 – satheesh