Show GPS availability and Accuracy in Iphone SDK

穿精又带淫゛_ 提交于 2019-12-04 06:24:27

问题


How to program to show the GPS availability and Accuracy level in an iphone? and it has to wipe the previous lat, lon info in label.


回答1:


There is a class in iOS sdk called CLLocationManager. Go though its documentation in the XCode or look for some sample example.
http://mobileorchard.com/hello-there-a-corelocation-tutorial/




回答2:


CLLocationManager has a method locationServicesEnabled to check if the service is enabled or not

[CLLocationManager locationServicesEnabled]


来源:https://stackoverflow.com/questions/5897204/show-gps-availability-and-accuracy-in-iphone-sdk

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