![](/img/trans.png)
[英]How can I avoid saving to camera roll an image picked from camera roll ? [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.