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.
To begin, follow these simple steps as outlined in the following order:
ViewController.xibfiles from the Project Navigator window.
UIToolbarobject, and add this to our view and select the Item button located within our toolbar.
UIBarButtonItem, and name it