【发布时间】:2014-12-15 17:45:08
【问题描述】:
我使用AFNetworking 2.0从网络下载了一个gif图像,然后使用ALAssetsLibrary将其保存到相机胶卷
[assetsLibrary writeImageToSavedPhotosAlbum:[responseObject CGImage] orientation:(ALAssetOrientation)[responseObject imageOrientation] completionBlock:^(NSURL *assetURL, NSError *error)
{
if (error)
{
[App showAlertWithTitle:@"Error" message:@"Save message failed"];
}
else
{
[App showAlertWithTitle:@"Success" message:@"Saved success"];
}
}];
然后我尝试使用UIImagePickerViewController从相机中检索此图像,但我检索到的图像不是GIF图像而是带有参考网址的jpeg图像:
UIImagePickerControllerReferenceURL = "assets-library://asset/asset.JPG?id=2E7C87E4-5853-4946-B86B-CC8AAF094307&ext=JPG";
不知道故障是ALAssetsLibrary还是UIImagePickerViewController,如何超越
【问题讨论】: