如何判断iOS设备是否有GPS? [英] How can I tell if an iOS device has a GPS?

查看:91
本文介绍了如何判断iOS设备是否有GPS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于iPad或iPod touch,有没有办法找出该设备是否有GPS?

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

额外信用:如果iPad本身没有,但是它连接到第三方GPS装置?我可以确定吗?

Extra Credit: What if the iPad itself does not, but it is connected to a third-party GPS unit? Can I determine this?

推荐答案

对于iOS 6或更高版本,您可能想尝试

For iOS 6 or higher, you might want to try

+ (BOOL)[CLLocationManager deferredLocationUpdatesAvailable]

根据文档


延迟的位置更新需要GPS硬件,并且可能并非所有iOS设备都支持。

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

这篇关于如何判断iOS设备是否有GPS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆