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]