Skip to content

Commit

Permalink
Updated initialization of picker with kUTTypeImage and kUTTypeMovie.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebennett-elec committed Aug 12, 2014
1 parent 9ab3968 commit a7880ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/ELCImagePickerDemoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#import "ELCImagePickerDemoAppDelegate.h"
#import "ELCImagePickerDemoViewController.h"
#import <MobileCoreServices/UTCoreTypes.h>


@interface ELCImagePickerDemoViewController ()
Expand All @@ -28,6 +29,8 @@ - (IBAction)launchController
elcPicker.returnsOriginalImage = YES; //Only return the fullScreenImage, not the fullResolutionImage
elcPicker.returnsImage = YES; //Return UIimage if YES. If NO, only return asset location information
elcPicker.onOrder = YES; //For multiple image selection, display and return order of selected images
elcPicker.mediaTypes = @[(NSString *)kUTTypeImage, (NSString *)kUTTypeMovie]; //Supports image and movie types

elcPicker.imagePickerDelegate = self;

[self presentViewController:elcPicker animated:YES completion:nil];
Expand Down

0 comments on commit a7880ee

Please sign in to comment.