Apple watchOS 2 Accelerometer

ぃ、小莉子 提交于 2019-12-07 16:18:19

问题


I am thinking of making a watchOS2 app that uses the accelerometer. If the app is running in the background, will it still be able to receive input from the accelerometer or CMMotionManager?


回答1:


You are able to access live accelerometer data only when the watchOS2 app is running. You could however access accelerometer historical data, i.e accelerometer data from when your app was in the background.

Watch this WWDC talk for more information: Whats new in Core Motion



来源:https://stackoverflow.com/questions/31361439/apple-watchos-2-accelerometer

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