How can I tell if an iOS device has a GPS?

后端 未结 4 2063
故里飘歌
故里飘歌 2020-12-10 13:14

For an iPad, or iPod touch, is there a way to find out if the device has GPS?

Extra Credit: What if the iPad itself does not, but it is connected to a third-party GP

4条回答
  •  渐次进展
    2020-12-10 14:04

    For iOS 6 or higher, you might want to try

    + (BOOL)[CLLocationManager deferredLocationUpdatesAvailable]
    

    According to the documentation:

    Deferred location updates require the presence of GPS hardware and may not be supported on all iOS devices.

提交回复
热议问题