How to select only video file using pickerview in iphone 开发者_如何学Gosdk?
You can use UIImagePickerController class as below to select only videofiles from library
UIImagePickerController * picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
picker.mediaTypes = [[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie, nil];
精彩评论