如何仅在ELCImagePickerController中选择视频?

时间:2014-08-14 08:17:43

标签: ios objective-c

我正在使用https://github.com/B-Sides/ELCImagePickerController

中的ELCImagePickerController

如何使用它仅显示视频?

2 个答案:

答案 0 :(得分:1)

导入你.m

#import <MobileCoreServices/UTCoreTypes.h>

并在您的方法中

ELCImagePickerController *elcPicker = [[ELCImagePickerController alloc] initImagePicker];
    elcPicker.mediaTypes = [[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie, nil];

答案 1 :(得分:0)

与UIImagePickerController具有相同的用法。

ELCImagePickerController *elcPicker = [[ELCImagePickerController alloc] initImagePicker];
elcPicker.mediaTypes = [[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie, nil];