[How to use] How to save image to album in iOS #1000
-
PlatformsiOS DescriptionAbout iOS Could this be implemented in the future? My codeI can create an album with the following code, but I don't know how to add images to the album I created.
Try do itI referred to the following thread |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In iOS, all Assets are stored in a huge container, and Album is more like adding a Tag to an Asset. |
Beta Was this translation helpful? Give feedback.
In iOS, all Assets are stored in a huge container, and Album is more like adding a Tag to an Asset.
So, you need to use
saveImage*
orsaveVideo*
to save the Asset first, and use thecopyAssetToPath
method.If album does not exist, you also need to use the
createAlbum
method before copying.