Is it possible to run accelerometer of iPhone in background?
问题 I want to use accelerometer of iPhone to get the log file of accelerometer value (maybe for 24 hours). Is it possible to let accelerometer runs in background while other applications are running? 回答1: You can do it now, if your app is allowed to run in the background for other reasons. See the Core Motion API's startAccelerometerUpdatesToQueue:withHandler: method here. 回答2: Nope, it is not. You basically can't run anything but a music app in the background. You can run the accelerometer while