iphone - 在 iPhone 上跟踪横向移动

标签 iphone objective-c ios accelerometer

我正在使用 iPhone 的加速度计和陀螺仪,但我有点困惑。

我想获得三个轴上直线运动的值,而不是它们的旋转值。 我似乎只得到后者的值(value)......

如何获取设备横向和向下/向上运动的可用值?

最佳答案

简而言之,您无法获得如此可用的值。我回答了基本相同的问题(加速度计移动的距离)here .

关于iphone - 在 iPhone 上跟踪横向移动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8428649/

相关文章:

objective-c - 错误 : address doesn't contain a section that points to a section in a object file

ios - 与两个 UINavigationController 共享与 rootViewController 相同的 UIViewController

iphone - NSString stringWithFormat

objective-c - Objective-C : Memory Leak issue in Class Method

iphone - 标签栏中的可扩展中心按钮

ios - 如何检查画的字母是字母表

ios - 需要iOS xcasset目录的一些解释

iphone - 使用 XML 和 RestKit 进行映射

ios - 生日应用 iOS 中的 UILocalNotification

iphone - 捏合手势和两个图像缩放