如何在iPad中增加popOver View的大小?

时间:2012-04-02 06:31:06

标签: ios xcode ipad

我使用以下代码在ipad中弹出照片库..

[[UIImagePickerController alloc] init];
    videoPicker.delegate = self;
    videoPicker.sourceType = 
    UIImagePickerControllerSourceTypePhotoLibrary;
    videoPicker.mediaTypes = [NSArray arrayWithObjects:(NSString *) kUTTypeImage,(NSString *)kUTTypeMovie,nil];
    videoPicker.allowsEditing = YES;;
    pop = [[UIPopoverController alloc]initWithContentViewController:videoPicker];
   [pop setDelegate:self];
    [pop presentPopoverFromRect:[sender frame] inView:self.view permittedArrowDirections:UIPopoverArrowDirectionDown animated:YES];
    [videoPicker release];

如何在此增加popOverView的大小?

1 个答案:

答案 0 :(得分:0)

popoverContentSize属性控制弹出窗口内容视图的大小。