Abstract
The last two chapters spent an incredible amount of time on dealing with information stored and persisted inside a device’s memory. Now, we will deal with an entirely opposite topic: data from the outside world—not in the sense of data given by the user, but instead, data collected by the device about the universe in which it exists at any given second. By retrieving information about the outside world, a developer can specifically build applications focused on enhancing the user’s experience based on his or herphysical situation. This could be anything from simply detecting the orientation of the device to incorporating rotation into a racing game’s steering system, to using an accelerometer to measure the acceleration of a roller coaster. Through the use of the Core Motion framework, we are able to accesswith great ease a variety of hardware built into our iOS device in order to acquire such unique information, from magnetic fields, to accelerations, both by gravity and otherwise, to rotation rates, about the specific situation of our device.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2012 Shawn Grimes and Colin Francis
About this chapter
Cite this chapter
Grimes, S., Francis, C. (2012). Core Motion Recipes. In: iOS 5 Recipes. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4006-8_12
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4006-8_12
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4005-1
Online ISBN: 978-1-4302-4006-8
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)