native ios app to use the accelerometer