recently, I want to save some images from urls to the user photo album.
I use the function UIImageWriteToSavedPhotosAlbum
, and the didFinishSavingWithError
call back told me the result, my problem is if there is a lot urls of images,using this way, some images always cannot be saved to the album even its already download from url.
As I checked the size offailed saved image , it is a png, 1290 × 1288
, I don`t know if it is because of the size is too big too save. Do you guys have this kind of issues? please help~thanks!
UIImageWriteToSavedPhotosAlbum(image, self,@selector(image:didFinishSavingWithError:contextInfo:), nil);
- (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo{
if (error != nil) {
isImagesSavedFailed = true;
}
}