我正在使用https://github.com/B-Sides/ELCImagePickerController
中的ELCImagePickerController如何使用它仅显示视频?
答案 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];