开发者

Show GPS availability and Accuracy in Iphone SDK

开发者 https://www.devze.com 2023-03-03 06:17 出处:网络
How to pro开发者_Python百科gram to show the GPS availability and Accuracy level in an iphone? and it has to wipe the previous lat, lon info in label.There is a class in iOS sdk called CLLocationManage

How to pro开发者_Python百科gram to show the GPS availability and Accuracy level in an iphone? and it has to wipe the previous lat, lon info in label.


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/


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

[CLLocationManager locationServicesEnabled]
0

精彩评论

暂无评论...
验证码 换一张
取 消