Skip to main content

Apps with Attitude

  • Chapter
  • First Online:
Learn iOS App Development
  • 1292 Accesses

Abstract

In a feat of miniaturization that would make Wayne Szalinski proud, most iOS devices are equipped with an array of sensors that detect acceleration, rotation, and magnetic orientation—which is a lot of “ations.” The combined output of these sensors, along with a little math, will tell your app the attitude the device is being held in, whether it’s being moved or rotated (and how fast), the direction of gravity, and the direction of magnetic north, with surprising accuracy. You can incorporate this into your app to give it an uncanny sense of immediacy. You can present information based on the direction the user is holding their device, control games through physical gestures, tell them if the picture they’re about to take is level, and so much more.

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 EPUB and 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

Notes

  1. 1.

    Wayne Szalinski was the hapless inventor in the movie Honey, I Shrunk the Kids.

  2. 2.

    Look up the word “leveler” for an interesting factoid on English history.

  3. 3.

    G is the force of gravity, equal to an acceleration of approximately 9.81 meters per second every second.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 James Bucanek

About this chapter

Cite this chapter

Bucanek, J. (2013). Apps with Attitude. In: Learn iOS App Development. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-5063-0_16

Download citation

Publish with us

Policies and ethics