Lights, Camera, and Action
Every mobile device has a camera; in fact, in many cases, a device has two of them and is used more as a camera than a camera is. It is important to note that cameras are an essential part of the iOS device family. In this chapter, you will explore the functionalities of light, camera, and action—in that order.
When a light-emitting diode (LED) flash was added to the iPhone, the first thing a lot of developers did was make flashlight and strobe light applications. The store was full of them. At the time, Apple did not have APIs that provided access to the flash. However, now AVFoundation has integrated functionality for accessing the flash. To use the LED flash, the first thing you need to do is ...