CMMotionActivityManager isActivityAvailable devices

混江龙づ霸主 提交于 2019-12-08 11:10:41

问题


I want to use CMMotionActivityManager, I would like to know what devices motion data is available on? Many of the places that i have read suggest that it is currently only on devices that have the M7 chip.

https://developer.apple.com/library/ios/documentation/CoreMotion/Reference/CMMotionActivityManager_class/Reference/Reference.html#//apple_ref/occ/cl/CMMotionActivityManager


回答1:


isActivityAvailable will return true on the M7 equipped devices:

iPhone5S
iPad mini with retina
iPad Air

Apple is not telling implicitly in the documentation, perhaps leaving other implementation options open and allowing the customer to disable the tracking sensor for privacy reasons.



来源:https://stackoverflow.com/questions/19767508/cmmotionactivitymanager-isactivityavailable-devices

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