0

我开发了一个消息应用程序,想在弹出窗口中打开一个类似于 iMessage 应用程序的 Camera Roll 界面: 在此处输入图像描述

我怎样才能实现这个功能?

4

1 回答 1

4

希望这对你有用

//初始化图像选择器并添加到弹出框控制器

  UIImagePickerController* imagePickerController= [[UIImagePickerController alloc] init];   
    imagePickerController.delegate=self;    
    imagePickerController.sourceType= UIImagePickerControllerSourceTypePhotoLibrary; 
popoverController= [[UIPopoverController alloc] initWithContentViewController:imagePickerController];
   [popoverController presentPopoverFromBarButtonItem:sender permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
于 2013-07-03T11:34:45.603 回答