Chapter 11. Advanced Input Using Sensors

When the iPhone was first announced, the multi-touch screen was the focal point of its high-tech appeal. However, it has always had a fantastic user interface due to the many other sensors that are built in, smoothing out every aspect of the user experience. The accelerometer knew when you tilted your device and rotated web pages automatically. A proximity sensor knew when your phone was up to your face so it would turn off the screen. An ambient light sensor would automatically adjust the backlight based on the room you were in.

Since those early days, each new iteration of the iPhone hardware has introduced more and more sensors that allow new generations of apps to provide even better experiences. Earlier ...

Get Learning Xcode 8 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.