Section 4: AVFoundation

Here is the code from today's section.

Note that the face detection only works for one (landscape) orientation of the device.

Sample code: