CMPedometer StepCounting not Available

♀尐吖头ヾ 提交于 2019-12-05 10:52:10

Your code is correct and it yields the expected result. The iPhone 5 does not have the hardware (the Apple M7 chip) to track steps, so step counting is not available.

You need at least an iPhone 5s

The iPhone 4s, 5 and 5c do not have the M7 Motion Sensor co-processor so they will not record steps. The iPhone 5s, 6 and 6 Plus all have a motion co-processor.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!