Open a saved image in camera roll programmatically

2019-06-23 21:58发布

问题:

I am able to cature image (using AVFoundation), save image using assets library and save its asset url, open the camera roll programmatically using image picker.

What I want to do is, when I click on the a particular button, the last saved image of the camera roll should show up as if I had opened the camera roll and clicked on that image. I don't want to return the image object back to the program, i just want have a look at the image. And if I swipe on the screen, the camera roll images should scroll.

Also, can I do this using the saved asset url instead of just accessing the last saved image?

Also, If I press cancel there, i might want to return to the camera roll instead of my view controller. Would that be possible?

(I tried to search but i don't think i have the right keywords)

similar question here : Open camera roll on an exact photo But no answer.