O'Reilly logo

More iPhone Development with Swift: Exploring the iOS SDK by David Mark, Jayant Varma, Jeff LaMarche, Alex Horovitz, Kevin Kim

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

Chapter    13

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.

Lights

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

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