我在iOS8中更新位置时遇到了新问题。

viewDidAppear中,我致电我的位置管理器:

//start location updating
locationManager = [[CLLocationManager alloc] init];
locationManager.delegate = self;
locationManager.desiredAccuracy = kCLLocationAccuracyBest;
[locationManager startUpdatingLocation];

但是这个空
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation{
    currentLocation = newLocation;
}

永远不会被打电话。
太奇怪了,我很确定在我还在芬兰的时候(使用我的手机数据)它能正常工作。现在,我正在巴西旅行(仅使用wifi),却无法在这里工作,这简直太不可思议了。我的wifi接入点似乎是众所周知的,所以我很困惑。
有任何想法吗?

最佳答案

问题的答案是有关iOS8如何处理位置更新的一些新闻。这里有一个很棒的帖子:
http://nevan.net/2014/09/core-location-manager-changes-in-ios-8/

关于ios - CLLocationManager位置通过wifi更新?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26700146/

10-09 08:06
查看更多