I had this same issue and I resolved it by ensuring that the images are saved sequentially. I think there may be some kind of race condition going on.
Basically, I did:
UIImageWriteToSavedPhotosAlbum([self.images objectAtIndex:self.currentIndex], self,
@selector(image:didFinishSavingWithError:contextInfo:), nil);
Then in `image:didFinishSavingWithError:contextInfo:`, I increment currentIndex and try the next image, if there are any left.
This has worked for me in every case so far.
I had this same issue and I resolved it by ensuring that the images are saved sequentially. I think there may be some kind of race condition going on.
Basically, I did:
UIImageWriteToSavedPhotosAlbum([self.images objectAtIndex:self.currentIndex], self,
@selector(image:didFinishSavingWithError:contextInfo:), nil);
Then in `image:didFinishSavingWithError:contextInfo:`, I increment `currentIndex` and try the next image, if there are any left.
This has worked for me in every case so far.