在 iPhone 中像指南针一样寻找方向?

发布于 2024-09-18 05:38:17 字数 190 浏览 13 评论 0原文

有人知道如何使用 iPhone 寻找真正的方向吗?我想实现这样的应用程序,我需要找到 iPhone 指向的方向,并希望使应用程序与 iphone 3GS 中的指南针应用程序相同。

iPhone 3G 支持指南针功能吗?谁能告诉我指南针应用程序如何像真正的磁罗盘一样准确地找到方向?

请帮助我。我处境危急。

提前致谢。

Do any one have idea for finding true direction using iPhone? I want to implement such application in which I need to find direction in which iPhone is pointing and want to make application same as compass application in iphone 3GS.

Does iPhone 3G supports compass functionality? And can any one tell me how compass application find directions so accurately like a real magnetic compass?

Please help me for this. I am in a critical situation.

Thanks in advance.

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

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

发布评论

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

评论(4

我们只是彼此的过ke 2024-09-25 05:38:17

这是来自 apple.com 的示例代码链接,用于使用磁力计和核心位置
https://developer.apple.com/library /ios/#samplecode/Teslameter/Introduction/Intro.html

您需要登录,如果您找不到该页面,只需在 https://developer.apple.com

here is a sample code link from apple.com for using magnetometer and Core Location
https://developer.apple.com/library/ios/#samplecode/Teslameter/Introduction/Intro.html

you need to be logged in, in case you cant find the page, just look for Teslameter example in Sample Code section of https://developer.apple.com

旧时浪漫 2024-09-25 05:38:17

在这里,我为您提供了简单的 PDF,以概述磁力计、CLLocation 和加速度计功能。看看这个。

http://learningiphoneprogramming.com/pdf/The_Sensors_in_your_iPhone.pdf

Here i have given you the simple PDF to get an overview about the Magnetometer, CLLocation and accelerometer functions. make a look about this.,

http://learningiphoneprogramming.com/pdf/The_Sensors_in_your_iPhone.pdf

救赎№ 2024-09-25 05:38:17

您可以从此链接获得很多帮助
http://answers.oreilly.com /topic/1657-how-to-use-the-iphones-digital-compass/

另外,如果您想在 Apple 中搜索它,请查找 CLLLocationManagerUIAcelerometer
您有望找到该代码。

泰穆尔。

You can get lot of help from this link
http://answers.oreilly.com/topic/1657-how-to-use-the-iphones-digital-compass/

also if you want to search it in Apple look for CLLLocationManager and UIAcelerometer.
You will find the code hopefully.

Taimur.

白鸥掠海 2024-09-25 05:38:17

iPhone 3GS 有一个用于检测磁位置的磁力计,3G 没有,因此您无法在 3G 上执行此操作

The iPhone 3GS has a magnetometer for detecting magnetic position, the 3G doesn't so you won't be able to do it on a 3G

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