What really sets the iPhone apart from laptops and PCs is its use of onboard sensors, including those that are location-enabled. This concise book takes experienced iPhone and Mac developers on a detailed tour of iPhone and iPad hardware by explaining how these sensors work, and what they're capable of doing.
With this book, you'll build sample applications for each sensor, and learn hands-on how to take advantage of the data each sensor produces. You'll gain valuable experience that you can immediately put to work inside your own iOS applications for the iPhone, iPod touch, and iPad. This book helps you focus on:
This short book is part of a collection that will, along with new material, be compiled into a larger book, iOS Sensor Programming. The other books in this collection are Augmented Reality in iOS, Geolocation in iOS, and iOS Sensor Apps with Arduino.
Table of Contents
- A Note Regarding Supplemental Files
1. The Hardware
- Available Sensor Hardware
- Differences Between iPhone and iPad
- Detecting Hardware Differences
- Setting Required Hardware Capabilities
- 2. Using the Camera
- 3. Using Audio
- 4. Using the Accelerometer
- 5. Using the Magnetometer
- 6. Using Core Motion
- 7. Going Further
- About the Author
- Title: Basic Sensors in iOS
- Release date: July 2011
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449308469