Skip to main content

Whee! Gyro and Accelerometer!

  • Chapter
Beginning iPhone 4 Development

Abstract

One of the coolest features of the iPhone, iPad, and iPod touch is the built-in accelerometer—the tiny device that lets iOS know how the device is being held and if it’s being moved. iOS uses the accelerometer to handle autorotation, and many games use it as a control mechanism. It can also be used to detect shakes and other sudden movement. This capability is extended even further with iPhone 4, which also includes a built-in gyroscope that lets you determine the angle at which the device is positioned around each axis. In this chapter, we’re going to introduce you to the use of the Core Motion framework to access these values in your application.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 39.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2011 Dave Mark, Jack Nutting and Jeff LaMarche

About this chapter

Cite this chapter

Mark, D., Nutting, J., LaMarche, J. (2011). Whee! Gyro and Accelerometer!. In: Beginning iPhone 4 Development. Apress. https://doi.org/10.1007/978-1-4302-3025-0_17

Download citation

Publish with us

Policies and ethics