我正在构建一个iOS应用程序,现在可以获取当前用户位置并显示给其用户(使用CLLocationManager)。有没有办法同时显示位置精度?
谢谢!
答案 0 :(得分:3)
在CLLocationManagerDelegate
:
- (void)locationManager:(CLLocationManager *)manager
didUpdateToLocation:(CLLocation *)newLocation
fromLocation:(CLLocation *)oldLocation
{
CLLocationAccuracy accuracy = newLocation.horizontalAccuracy;
}