O'Reilly logo

Sams Teach Yourself iPhone Application Development in 24 Hours by John Ray, Sean Johnson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 19. Sensing Movement with Accelerometer Input

What You’ll Learn in This Hour

How to determine the device’s orientation

How to measure tilt

How to measure movement

The Nintendo Wii introduced motion sensing as an effective input technique for main-stream consumer electronics. Apple applied this technology to great success with the iPhone and iPod Touch. Apple’s devices are equipped with an accelerometer that can be used to determine the orientation, movement, and tilt of the device. With the iPhone’s accelerometer, a user can control applications by simply adjusting the physical orientation of the device and moving it in space.

This innovative and natural input mechanism is exposed to third-party applications in the iPhone ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required