you need to do something like this -
ALAssetsLibrary* library=[[ALAssetsLibrary alloc] init] ;
[library writeImageToSavedPhotosAlbum:img.CGImage orientation:(ALAssetOrientation)img.imageOrientation
completionBlock:^(NSURL* assetURL, NSError* error) {
if (error != NULL)
else
}] ;
Although I'm going crazy, trying to figure out how to keep this code compatible with the iphone 3 SDK.
source
share