0

这是我的第一个问题。

我正在开发一个 iPad 应用程序,它允许用户选择一个视频,修剪它然后选择它。我首先为 iPhone 制作了原型,一切正常。然后我将代码移植到 iPad,将 modelviewcontroller 更改为 popupviewcontroller,我遇到了一个奇怪的问题。没有选择按钮,只有播放按钮。所以弹窗工作,你可以去一个视频,但只有一个播放图标存在,没有选择?iphone的完全相同的代码显示了一个选择?我错过了什么吗?

// Settings for the picker

imagePicker = [[UIImagePickerController alloc]init];

imagePicker.delegate = self;

imagePicker.allowsEditing = YES;

imagePicker.videoMaximumDuration = 10;

imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;

imagePicker.mediaTypes =[UIImagePickerController availableMediaTypesForSourceType:imagePicker.sourceType];  

//settings for the popup

UIPopoverController *controller2 = [[UIPopoverController alloc] initWithContentViewController:imagePicker];

self.popoverVideoSelectController = controller2;
 [controller2 release];

[self.popoverVideoSelectController presentPopoverFromRect:loadVideo1Button.frame inView:videoToolsLeft permittedArrowDirections:UIPopoverArrowDirectionDown animated:YES];
4

1 回答 1

1

事实证明,我正在添加自己的工具栏按钮,该按钮正在替换使用的按钮

于 2010-07-22T18:01:01.643 回答