Use accelerometer

Solutions Collect From Internet About “Use accelerometer”

The z-direction points towards you, so to say. Try accessing the layer of the view. It should have a z-parameter.

here is the accelerometer example code …

There is also SO post

How can I rotate an image in response to the iPhone's accelerometer?