AVCam-iOS: Using AVFoundation to Capture Images and Movies
Version 5.0, 2015-07-21
Updated to the latest APIs. Various bug fixes.
(Full Revision History)
Xcode 7.0, iOS 9 SDK
iOS 8.0 or later
AVCam demonstrates how to use the AVFoundation capture API to record movies and capture still images. The sample has a record button for recording movies, a camera button for switching between front and back cameras (on supported devices), and a still button for capturing still images. AVCam runs only on an actual device, either an iPad or iPhone, and cannot be run in Simulator.