iPod Touch 4g 上的磁航向

发布于 2024-12-26 02:20:03 字数 116 浏览 2 评论 0原文

[CLLocationManager headerAvailable] 在我的 iPod Touch 4 上返回“否”,但我的设备上有一个应用程序可以在位置服务关闭的情况下确定磁航向。
还有其他方法获取标题吗?

[CLLocationManager headingAvailable] returns NO on my iPod Touch 4, but I have an app on the device that determines magnetic heading with location services turned off.
Is there any other way to get the heading?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雨的味道风的声音 2025-01-02 02:20:03

成立! CoreMotion 就是答案。
iPod 4 上的航向无法通过 CLLocationManager 获得,但我们仍然可以使用 CoreMotion 框架读取磁力计数据

Found! CoreMotion is the answer.
Heading on iPod 4 is not available through CLLocationManager, but we still can read magnetometer data using CoreMotion framework

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文