mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-18 19:22:51 +08:00
[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:
parent
5f98661e0d
commit
b702aaf440
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user