在旧版iPhone上使用与CMMotionActivity类似的技术 [英] Use similar technology as CMMotionActivity on older iPhones

查看:91
本文介绍了在旧版iPhone上使用与CMMotionActivity类似的技术的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望为iPhone 5s使用CMMotionActivity,但也希望能够在较旧的iPhone上使用类似的功能,这有可能吗?

I'm looking to use the CMMotionActivity for iPhone 5s's, but also want to be able to use similar functionality on older iPhone's, is this possible?

是否可以通过跟踪GPS而不使用M7芯片来创建精度较低的替代方案?有任何建议/教程/示例代码吗?

Could I create a less accurate alternative maybe, by tracking GPS and not using the M7 chip? Any advice/tutorials/sample code?

推荐答案

您可以创建自己的算法,该算法将利用加速度计数据并估算所采取的步骤数.在同一应用程序中具有2个独立的逻辑不是那么准确,也不是一个好主意.

You can create your own algorithm which will utilize accelerometer data and estimate number of steps taken. Its not as accurate and its not a good idea to have 2 separate logic in the same app.

如果您想尝试一下,请检查此答案..如何使用加速度计来计算步数?

In case, you want to give it a try, check this answer..How to count steps using an Accelerometer?

这篇关于在旧版iPhone上使用与CMMotionActivity类似的技术的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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