[CB-3482] Allow image metadata to be saved to album on iOS

-pass in metadata when saving to album using ALAssetsLibrary
This commit is contained in:
James Jong 2013-08-09 10:09:42 -04:00
parent 767e064c01
commit 3b0538c3b1

View File

@ -675,7 +675,8 @@ static NSSet* org_apache_cordova_validArrowDirections;
}
if (self.pickerController.saveToPhotoAlbum) {
UIImageWriteToSavedPhotosAlbum([UIImage imageWithData:[self data]], nil, nil, nil);
ALAssetsLibrary *library = [ALAssetsLibrary new];
[library writeImageDataToSavedPhotosAlbum:self.data metadata:self.metadata completionBlock:nil];
}
if (self.pickerController.returnType == DestinationTypeFileUri) {