Skip to main content

Introducing new learning courses and educational videos from Apress. Start watching

Whee! Gyro and Accelerometer!

  • Chapter
  • 693 Accesses

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. The accelerometer can also be used to detect shakes and other sudden movement. This capability was extended even further with the introduction of the iPhone 4, which also included a built-in gyroscope to let you determine the angle at which the device is positioned around each axis. The gyro and accelerometer are now standard fare on all new iPads and iPod touches. In this chapter, we’re going to introduce you to the use of the Core Motion framework to access the gyro and accelerometer values in your application.

Keywords

  • Instance Variable
  • Main Thread
  • Motion Manager
  • Property List
  • Interface Orientation

These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

This is a preview of subscription content, access via your institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • DOI: 10.1007/978-1-4302-4513-1_19
  • Chapter length: 30 pages
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
eBook
USD   39.99
Price excludes VAT (USA)
  • ISBN: 978-1-4302-4513-1
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book
USD   54.99
Price excludes VAT (USA)

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and Permissions

Copyright information

© 2013 David Mark, Jack Nutting, Jeff LaMarche, Fredrik Olsson

About this chapter

Cite this chapter

Mark, D., Nutting, J., LaMarche, J., Olsson, F. (2013). Whee! Gyro and Accelerometer!. In: Beginning iOS6 Development. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4513-1_19

Download citation