Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios Phonegap(cordova)将图像保存到自定义相册_Ios_Objective C_Cordova_Phonegap Plugins - Fatal编程技术网

Ios Phonegap(cordova)将图像保存到自定义相册

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

我对Objective-C不太了解。 我需要将gallery中的图像保存到custom name album,我使用了
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]);
    }
   }]; 
问题决定了。