Selecting images and video from the camera roll
In this recipe, we will learn how to give the user the ability to select images and videos from the iOS device's photo album.
Create a new Single View Application, and name it MediaPickerExample.
How to do it...
To begin, follow these simple steps as outlined in the following order:
- Select the
ViewController.xibfiles from the Project Navigator window.
- From the Object Library, select and drag a
UIToolbarobject, and add this to our view and select the Item button located within our toolbar.
- From the Attributes Inspector section, change the Identifier property to Organize.
- Create an outlet for this
UIBarButtonItem, and name it
- Create the action method for the Organize button and ...