在Iphone SDK中显示GPS可用性和准确性

时间:2011-05-05 11:52:37

标签: ios iphone gps

如何编程以在iPhone中显示GPS可用性和准确度?它必须擦除标签中的前一个lat,lon信息。

2 个答案:

答案 0 :(得分:0)

iOS sdk中有一个名为CLLocationManager的类。在XCode中查看其文档或查找一些示例示例 http://mobileorchard.com/hello-there-a-corelocation-tutorial/

答案 1 :(得分:0)

CLLocationManager有一个方法locationServicesEnabled来检查服务是否已启用

[CLLocationManager locationServicesEnabled]