【发布时间】:2013-05-11 08:44:36
【问题描述】:
我是 iOS 新手。 我正在使用 GPS 位置更新制作一个应用程序。 我正在获取当前位置并将位置更新到服务器。 我想获得仪表的每一个变化并将其更新到服务器。 这是我正在使用的代码:
locationManager = [[CLLocationManager alloc] init] ;
locationManager.delegate = self; // send loc updates to myself
locationManager.distanceFilter = 1.0f; // whenever we move
locationManager.desiredAccuracy = kCLLocationAccuracyBest;
[locationManager startUpdatingLocation];
但是位置并没有在每米之后更新。它会更新,但不是定期更新。
感谢您的帮助!
【问题讨论】: