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.
Keywords
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, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsNotes
- 1.
Wayne Szalinski was the hapless inventor in the movie Honey, I Shrunk the Kids.
- 2.
Look up the word “leveler” for an interesting factoid on English history.
- 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
Rights 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
DOI: https://doi.org/10.1007/978-1-4302-5063-0_16
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-5062-3
Online ISBN: 978-1-4302-5063-0
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books