Hi I was wondering if theres a way to extract ALAsset of an image taken from Camera but without saving it... Ive come across various example that used writeImageToSavedPhotosAlbum and then fetched the ALAssest, but i dont deem it necessary to save the image in the camera roll, was just wondering if this could be done otherwise

有帮助吗?

解决方案

No ALAssest exists until the image has been successfully saved to the image library. Until then you just have a UIImage that has come from the picker. There is no mandate that the image needs to be saved into the library and any decision about whether you want to save the image should be based on what the app tells the user and if the user would naturally expect to find the image in the library after taking / saving it in the app.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top