Show GPS availability and Accuracy in Iphone SDK

后端 未结 2 1946
孤街浪徒
孤街浪徒 2021-01-26 07:06

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.

相关标签:
2条回答
  • 2021-01-26 07:36

    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/

    0 讨论(0)
  • 2021-01-26 07:40

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

    [CLLocationManager locationServicesEnabled]
    
    0 讨论(0)
提交回复
热议问题