UIImagePickerController iPhone Camera crop overlay - iphone

How do I use UIImagePickerController to show a overlay (say a small circle)?
Also when the user clicks the picture, only the part of the photo inside the circle is returned, how do I go about that?

Related

Expand image to full screen on touch in iOS

I want to accomplish this:
Load a UIViewController with a image in some part of it. The image should be a little smaller than the original and also cropped in top and botton and when touch on it to animate into full screen.
Something like JetSetter app does

Customization of UIImagePickerController

I am working on camera application in which I want to set the screen of the camera i.e camera window appear for particular frame. And in front of camera screen the cut out image is coming so that user can see the background through the cut out part of the image and capture the image. So any one know to do this i.e. customization of UIImagePickerController.
UIImagePickerController has a property named cameraOverlayView. Use this to set your camera overlay as any view you like. Use normal view transparency for letting the user see parts of the live camera view.

I want to use an overlay for the UIImagePickerController, but I want the shutter animation

I am using the UIImagePickerController with an overlay view so I can have some custom controls. I notice that when the user clicks the "Capture" button and I call [imagePicker takePicture], the shutter animation doesn't occur. The effect is that I see the view sort of freeze and then continue in camera mode for a second before the image is captured and I display it over the camera view.
Make sense?
So, in other words, when the UIImagePickerController is initially presented, you see the shutter animation open up to reveal the camera, but when using overlay views and hiding camera controls, when I take the picture I don't see it. Would really like to. :-(
Any ideas?
There is currently now way to do this with the built in UIImagePicker animation. You would have to use AVFoundation and roll your own capture animation whenever you take the picture

UIGetScreenImage

Is UIGetScreenImage returning an image of whatever is on the screen or is it limited to the screen shown when a camera view is displayed?
it returns whatever's on the screen, so if you only want to capture the camera preview image, you need to crop the image UIGetScreenImage returns.

How to visualize (and not pick) image from the Camera Roll

I will like to visualize the images from the Camera roll from my application. Something like with the Album app which let you zoom and pan pictures. I tried using the UIImagePickerController with UIImagePickerControllerSourceTypeSavedPhotosAlbum as sourceType but unfortunatly if a tap a picture, the didFinishPickingMediaWithInfo is called with the picture selected.
Thanks!
I believe that the image picker is currently the best you can get. If you want zoom and panning you’ll have to write the code yourself (using the UIImage returned from the image picker).