0

I do not know much about Objective-C. I need to save the image in the gallery to custom name album and i used Canvas2ImagePlugin but image save to album camera roll.

Canvas2ImagePlugin using:

UIImage* image = [[[UIImage alloc] initWithData:imageData] autorelease];    
UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);

How to use the name album in the function UIImageWriteToSavedPhotosAlbum? Or use another function?

Jatin Patel - JP
  • 3,725
  • 2
  • 21
  • 43

1 Answers1

0

Actually i don't know about phonegap. but i can give you hint that how we can achieved in ios. with help of ALAssetsLibrary, we can stored photo to custom album.

 [self.library saveImage:image toAlbum:@"Touch Code Magazine" withCompletionBlock:^(NSError *error) {
    if (error!=nil) {
        NSLog(@"Big error: %@", [error description]);
    }
   }]; 
Jatin Patel - JP
  • 3,725
  • 2
  • 21
  • 43