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).
Related
I'm currently working on an app which is like a photo gallery. It supports orientations too. The UIImageView which contains the UIImage, is in UIViewContentModeScaleAspectFit. When I change the orientation of the device, some part of the UIImage gets displayed on the part of the view which is not a part of the aspect fit region.Any ideas to tackle it??
I just got similar kind of problem while using zooming effect. After changing the orientation of device while the image is zoomed in, it overlaps the imageView. Try to zoom out the image just after changing the orientation. That worked for me.
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 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
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?
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.