Ios Phonegap(cordova)将图像保存到自定义相册
我对Objective-C不太了解。 我需要将gallery中的图像保存到custom name album,我使用了Ios Phonegap(cordova)将图像保存到自定义相册,ios,objective-c,cordova,phonegap-plugins,Ios,Objective C,Cordova,Phonegap Plugins,我对Objective-C不太了解。 我需要将gallery中的图像保存到custom name album,我使用了Canvas2ImagePlugin但图像保存到album camera roll Canvas2ImagePlugin使用: UIImage* image = [[[UIImage alloc] initWithData:imageData] autorelease]; UIImageWriteToSavedPhotosAlbum(image, self, @selec
Canvas2ImagePlugin
但图像保存到album camera roll
Canvas2ImagePlugin
使用:
UIImage* image = [[[UIImage alloc] initWithData:imageData] autorelease];
UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);
如何在函数
UIImageWriteToSavedPhotosAlbum
中使用名称相册?或者使用其他功能?实际上我不知道phonegap
。但我可以给你一些提示,我们如何在ios
中实现这一目标。在库的帮助下,我们可以将照片存储到自定义相册中
[self.library saveImage:image toAlbum:@"Touch Code Magazine" withCompletionBlock:^(NSError *error) {
if (error!=nil) {
NSLog(@"Big error: %@", [error description]);
}
}];
问题决定了。