uiimagepickercontroller - imagepicker为什么没有视频

  显示原文与译文双语对照的内容
0 0

我在我的ipod上有视频但是imagepicker说没有任何视频,如果有人可以感谢它的话


UIImagePickerController *videopicker = [[UIImagePickerController alloc]init];
videopicker.delegate = self;
videopicker.mediaTypes =
[[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie, nil];
videopicker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
[self presentModalViewController:videopicker animated:YES];
videopicker.wantsFullScreenLayout = YES;

时间: 原作者:

0 0

下面的代码对我来说很正常,它显示了照片和视频


if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeSavedPhotosAlbum]) {

 UIImagePickerController *apicker = [[UIImagePickerController alloc] init];
 apicker.delegate = self;
 apicker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
 **apicker.mediaTypes = [UIImagePickerController availableMediaTypesForSourceType:UIImagePickerControllerSourceTypeSavedPhotosAlbum];**
 [self presentModalViewController:apicker animated:YES];
 }
 }

原作者:
...