这是我从 imagePicker 中挑选视频的代码:
imagepicker = [[UIImagePickerController alloc] init];
[imagepicker setDelegate:self];
NSArray *mediaTypesAllowed = [UIImagePickerController availableMediaTypesForSourceType:UIImagePickerControllerSourceTypePhotoLibrary];
[imagepicker setMediaTypes:mediaTypesAllowed];
imagepicker.wantsFullScreenLayout = YES;
pickImagePop = [[UIPopoverController alloc] initWithContentViewController:imagepicker];
[pickImagePop setDelegate:self];
[pickImagePop presentPopoverFromRect:CGRectMake(60, 100, 1, 20) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES];
[pickImagePop setPopoverContentSize:CGSizeMake(320, 400) animated:YES];
但是这段代码在 Picker 中同时显示照片和视频。我只想显示视频。我怎样才能做到这一点?