O'Reilly logo

Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android by Michael Eierman, Jakob Iversen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required