Advertisement

Device Orientation and Motion

  • Molly Maskrey
  • Kim Topley
  • David Mark
  • Fredrik Olsson
  • Jeff Lamarche
Chapter

Abstract

The iPhone, iPad, and iPod touch all include a 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 was the first iPhone to include a built-in gyroscope to let developers determine the angle at which the device is positioned around each axis. The gyro and accelerometer are now standard on all new iPads and iPod touches. In this chapter, we’ll explore using the Core Motion framework to access the gyro and accelerometer values in your application.

Keywords

Rotation Rate Vertical Spacing Main Thread Motion Manager Directional Controller 
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.

Copyright information

© Molly Maskrey, Kim Topley, David Mark, Fredrik Olsson and Jeff Lamarche 2016

Authors and Affiliations

  • Molly Maskrey
    • 1
  • Kim Topley
    • 2
  • David Mark
    • 3
  • Fredrik Olsson
    • 4
  • Jeff Lamarche
    • 5
  1. 1.ParkerUSA
  2. 2.Apt 10GNew YorkUSA
  3. 3.ArlingtonUSA
  4. 4.StockholmSweden
  5. 5.New HartfordUSA

Personalised recommendations