簡體   English   中英

如何在iOS的彈出窗口中打開“相機膠卷”?

[英]How can I open Camera Roll in pop up window in iOS?

我開發了一個消息傳遞應用程序,並希望在類似於iMessage應用程序的彈出窗口中打開“相機膠卷”界面: 在此處輸入圖片說明

如何實現此功能?

希望這對你有用

//初始化圖像選擇器並添加到彈出框控制器

  UIImagePickerController* imagePickerController= [[UIImagePickerController alloc] init];   
    imagePickerController.delegate=self;    
    imagePickerController.sourceType= UIImagePickerControllerSourceTypePhotoLibrary; 
popoverController= [[UIPopoverController alloc] initWithContentViewController:imagePickerController];
   [popoverController presentPopoverFromBarButtonItem:sender permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM