Recording video and taking pictures
In addition to playing existing media, you can also make apps that allow users to create their own content. In this section, you will learn how you can use a built-in component to enable users to take a picture. You will also learn how you can use a raw video feed to record a video. If you want to follow along with the samples in this section, make sure to grab the starter project for Captured
from this chapter's code bundle.
The starter project contains a couple of view controllers and some connected outlets and actions. Note that there is a UIViewController
extension in the project, too.
This extension includes a helper method that makes displaying an alert to the user a little bit simpler. This extension will be used to show an alert that informs the user when their photo or video is stored in the camera roll.
Since a user's camera and photo library are considered very privacy-sensitive, you need to make sure that you add the...