Sample code to capture photos or videos on iOS.
- ViewController conforms to UIImagePickerControllerDelegate, UINavigationControllerDelegate, and UIActionSheetDelegate
- Action sheet is used to allow the user to choose to take a photo, or select one from the photo library
- Delegate methods give you the photo data to manipulate or use the resulting image