Basic Sensors in iOS


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:

  • Camera: learn how to take pictures and video, create video thumbnails, customize video, and save media to the photo album
  • Audio: use the media picker controller and access the iPod music library in your own application, and enable your app to record and play sampled audio
  • Accelerometer: write an application that uses this sensor to determine device orientation
  • Magnetometer: learn how this sensor verifies compass headings
  • Core Motion: use this framework to receive motion data from both the accelerometer and the vibrational gyroscope

Table of Contents
Chapter 1 The Hardware
Chapter 2 Using the Camera
Chapter 3 Using Audio
Chapter 4 Using the Accelerometer
Chapter 5 Using the Magnetometer
Chapter 6 Using Core Motion
Chapter 7 Going Further

Book Details

  • Paperback: 106 pages
  • Publisher: O’Reilly Media (July 2011)
  • Language: English
  • ISBN-10: 1449308465
  • ISBN-13: 978-1449308469
Download [16.5 MiB]

You may also like...

Leave a Reply