Updated Branches: refs/heads/master 767e064c0 -> 3b0538c3b
[CB-3482] Allow image metadata to be saved to album on iOS -pass in metadata when saving to album using ALAssetsLibrary Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/3b0538c3 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/3b0538c3 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/3b0538c3 Branch: refs/heads/master Commit: 3b0538c3b1621ce00c53afa9646ef15c527b0147 Parents: 767e064 Author: James Jong <[email protected]> Authored: Fri Aug 9 10:09:42 2013 -0400 Committer: James Jong <[email protected]> Committed: Fri Aug 9 10:09:42 2013 -0400 ---------------------------------------------------------------------- src/ios/CDVCamera.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/3b0538c3/src/ios/CDVCamera.m ---------------------------------------------------------------------- diff --git a/src/ios/CDVCamera.m b/src/ios/CDVCamera.m index ebef288..e0f195f 100644 --- a/src/ios/CDVCamera.m +++ b/src/ios/CDVCamera.m @@ -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) {
