Use similar technology as CMMotionActivity on olde

2019-09-21 11:53发布

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条回答
甜甜的少女心
2楼-- · 2019-09-21 12:07

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?

查看更多
登录 后发表回答