【发布时间】:2014-11-25 07:48:25
【问题描述】:
我显然在这里遗漏了一些基本的东西。我正忙于监控重大位置变化的应用程序。我运行应用程序。然后完全关闭它,我的委托中的 didUpdateLocations 在必要时被触发,但我的位置为零。
- (void)locationManager:(CLLocationManager *)manager
didUpdateLocations:(NSArray *)locations {
NSLog(@"didUpdateLocations: %@", [locations lastObject]);
CLLocation* location = [locations lastObject];
NSLog(@"latitude %+.6f, longitude %+.6f\n",
location.coordinate.latitude,
location.coordinate.longitude);
}
有什么想法/帮助吗?
谢谢
【问题讨论】:
-
你在哪个 iOS 上尝试这个?
-
最新版本 8.1.1