Xcode - 如何获取位置精度数据?

时间:2013-01-22 03:32:53

标签: objective-c xcode geolocation location core-location

我正在构建一个iOS应用程序,现在可以获取当前用户位置并显示给其用户(使用CLLocationManager)。有没有办法同时显示位置精度?

谢谢!

1 个答案:

答案 0 :(得分:3)

CLLocationManagerDelegate

- (void)locationManager:(CLLocationManager *)manager
    didUpdateToLocation:(CLLocation *)newLocation
           fromLocation:(CLLocation *)oldLocation
{
   CLLocationAccuracy accuracy = newLocation.horizontalAccuracy;
}