Open a saved image in camera roll programmatically - iOS - objective-c

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.

Related

Screen Shot of image clicked react-naitve

I have multiple graphs on my screen, however I want to share the image of graph on which i have clicked. I am using https://github.com/react-native-community/react-native-share to share the content and https://github.com/gre/react-native-view-shot to capture the entire screen. Is there is any way to capture the image on which i have clicked and get the uri.?
I think one possible solution is when the user clicked on the graph, you can navigate him to a new screen and send and send graph data as param to it. In the new screen display that specific graph using param data and take screenshot then.
and finally share it.

Expo Image editor from ImagePicker API

Exponents ImagePicker API lets you pick an image from your library. After picking an image it opens the image in an image editor that lets you edit the image. Is there any way to skip the image picking part and directly go to the editor screen?
Like I give in an image URI and it opens that image in the image editor screen of expo.
Set allowsEditing={false}. See here for details.
allowsEditing (boolean) -- Whether to show a UI to edit the
image/video after it is picked. Images: On Android the user can crop
and rotate the image and on iOS simply crop it. Videos: On iOS user
can trim the video. Defaults to false.

codename one how to place component on an image viewer that capture camera?

I have a GUI Builder created form in codename one, how can i open the camera in a resizable view at the show() of the form and place container like text area or anything else on it?
I saw the camera demo but i don't understand it very well because on the simulator it open a file picker.
My purpose is to create a form with a camera resizable capture when you have two labels and you can also write or paint on your photo used in background, I do this only for hobby and fun, i do what i can, Any advice is well accepted, thank you for the attenction
You can now place a component on top of a camera view with a new cn1lib: https://github.com/codenameone/CameraKitCodenameOne
Original answer below:
I'm assuming you mean overlay on a live camera view. While this is possible it's not supported at this time in the Java API layer.
If you mean grabbing a photo and setting it as a background for the form for overlay you can create an image with the result of the Capture API and use setBgImage() to set that image to the background of a component or form.

Can we access Retake image of Default camera

I am new in iOS. I want to know if it is possible to access the retake image button of UIImagePickerController. If so, how do you call a function on that button?
My problem is that I am using UIImagePickerController to take an image from the camera and save the image in the documents directory. I have done my task using a UIImageView and UIAlertView on an other view, but the problem is that I want to save the image before retake image button pressed in camera. What I have to do to achieve this?
You can't do what you want using UIImagePickerController. Instead, use AVFoundation framework for capturing still images in the way you want. Please, check this Apple's sample project http://developer.apple.com/library/ios/#samplecode/AVCam/Introduction/Intro.html.

Cropping image into popup?

How to crop an image coming from server into popup? I have image coming from web service and showing it into a popup on a click on a table. I want to add cropping functionality into it. How can I do it??
There are a number of open source image cropping libraries on cocoacontrols.com Here's one that replicates Apple's crop image feature. You can then display the editing view controller in a popover when the user selects the row.