我有一个 iPad 应用程序,当我单击按钮时,它会打开一个带有 iPad 库的弹出窗口以查看照片和图片。我希望当我单击按钮时它也应该显示视频,但它不显示视频。
在设备中,当我看到库时它会显示视频,但是当弹出窗口在应用程序中打开时,它不会显示任何视频。
UIImagePickerController *pckrImage = [[UIImagePickerController alloc] init];
pckrImage.delegate = self;
if (isiPhone) {
if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypePhotoLibrary]) {
pckrImage.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self presentModalViewController:pckrImage animated:YES];
}
}
else {
popOver = [[UIPopoverController alloc]initWithContentViewController:pckrImage];
[popOver presentPopoverFromRect:CGRectMake(450.0f, 825.0f, 10.0f, 10.0f) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionDown animated:YES];
}