14. Access to Hardware and Sensors in iOS

A big part of the promise of mobile computing is that the mobile devices today offer features that aren’t available in any other general-purpose computing devices. Besides mobility, the availability of hardware sensors on the device is what makes it possible to create truly innovative solutions that would not be possible otherwise.

This chapter demonstrates several approaches to interacting with the hardware on the device.

Image You can use UIDevice to get basic information about the device, including OS Version and its current orientation (Landscape, Portrait, and so on).

The Notification Center can be used ...

Get Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.