Saving a photo and using it immediately

前端 未结 3 911
悲哀的现实
悲哀的现实 2021-01-17 04:33

I have the following code for taking a photo and saving it to the camera roll. I need to be able to use it there and then after saving without having to go back into the gal

3条回答
  •  离开以前
    2021-01-17 05:24

    Use the ALAssetsLibrary, if you save the image using UIImageWriteToSavedPhotosAlbum, you don't get a pointer to it. More info.

    Edit: I think the solution of @DharmeshKheni should work. My guess is that you read the cameraPath before this is set. In other words: I think you try to use the new picture before it's saved. Can you tell where the cameraPath is set, and where you read it?

提交回复
热议问题