Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在构建一个 iOS 应用程序,它现在能够获取当前用户位置并向其用户显示(使用 CLLocationManager)。有没有办法也显示位置精度?
谢谢!
在你的CLLocationManagerDelegate:
CLLocationManagerDelegate
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation { CLLocationAccuracy accuracy = newLocation.horizontalAccuracy; }