issues #2677:Use CoreMotion's API to replace UIAccelerometer.