-->

Use similar technology as CMMotionActivity on olde

2019-09-21 11:34发布

问题:

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?

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

回答1:

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?