我想得到UIImagePickerControllerOriginalImage
,UIImagePickerControllerReferenceURL
当我下载图像并将其保存到相册时..
谁能建议找到这两个参数的正确方法?
如果我使用方法“
[library writeImageToSavedPhotosAlbum:[viewImage CGImage] orientation:(ALAssetOrientation)[viewImage imageOrientation] completionBlock:^(NSURL *assetURL, NSError *error)
我会得到“UIImagePickerControllerReferenceURL”,如果我使用
UIImageWriteToSavedPhotosAlbum([UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:self.imageURL]]], testOriginalImage, @selector(image:didFinishSavingWithError:contextInfo:), nil)
我会得到“UIImagePickerControllerOriginalImage”
怎么做才能两者兼得?