iOS get current location using GPS device

喜你入骨 提交于 2019-12-10 11:47:36

问题


I want to use CLLocationManager to get the current user location using GPS antenna, not the cellular network. How can I ensure that?


回答1:


Your choices is either the standard location service (e.g. startUpdatingLocation, for which you can specify the desiredAccuracy), or the low-power significant change service (e.g., startMonitoringSignificantLocationChanges). But you generally don't specify location services based upon hardware, but rather on the basis of your app's functional needs. Use the standard service if you need an accurate location, and try using the significant change service if you don't need the same level of precision.

See the Location Awareness Guide for more information.



来源:https://stackoverflow.com/questions/13323373/ios-get-current-location-using-gps-device

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!