im working in iphone's camera app, using UIImagePicker to launch the camera.
Everything goes well, just a need to use the default controls showed in the camera app in iphone(little thumbnail from the last pic in camera roll and take photo buttons) and its animation(take and send the picture to the left bottom thumbnail), not default in UIImagePicker (cancel and take photo buttons).
How i can do that?
thankz :D
You can't do that. What you should do is present a UIActionSheet and ask if the user wants to get a photo from the Camera or their Photo Albums.
You may try to use the cameraOverlayView property or create your own custom controls duplicating the default controls (hiding the default controls with showsCameraControls = NO).
Related
I'm trying to show the camera on ImageView object.
Is this possible?
if not, how can I show the camera without open the default app?
for now I just open it and capture an image with the camera intent.
thanks for help.
I am taking pictures from my custom UIImagePicker camera and saving the images inside the app Document Directory.
Now, when I display the images when a user Swipes over my image he should see the next/prev image. As of now I have keep the transition discrete(the image doesn't move with the finger; it changes immediately). But I would love the transition be smooth like the one in default iPhone album (smooth and along with the finger).
Can you tell how to achieve this ?
Thnx in advance
If u want to scroll images only than u can used Paging technic:
try this link:
http://eureka.ykyuen.info/2010/05/22/iphone-uiscrollview-with-paging-example/
I want implement camera like Instagram . all photo is Fixed size.
but I can't set UIImagePickerController frame with CGRectMake(0,0,200,200);
how can I change camera's view size?
how can let all photo fixed size?
it's fullscreen now!
need help.3Q
As UIImagePickerController is a standard iOS controller,I don't think it allow to set frame to make it custom sized.But still you can give a look at cameraOverlayView.There is a very small chance you can do something with dis.
camera like instagram usually be implemented with AVFoundation, which is more flexible, and use AVCaptureSession with the camera preview layer for the camera preview size
I am building a custom camera app, and would like to have the camera view similar to the native camera app in iPhone. (i.e., picks videos as a non-modal view, stays in the camera view after each video taken. I found the retake and use views unnecessary). Is there any possible way to do it? Thanks.
you can't do it for videos at present, but you can do it for still pictures in OS 3.1. if you search for "takePicture" and "cameraOverlayView" you should find helpful information; you can resize the preview window to be any size you like.
I am creating an app, in which the user will be able to choose a photo. Now I want that when the user taps a button, an UIActionSheet pops up to let the user choose if they want to use the Camera, or the Photo Library. The UIActionSheet should always be there, but the Camera option only if the device has a camera. I'm not sure if there is a standard method to do this, or if I need to implement it myself. Can anyone help me?
Thanks
You will need to build this action sheet yourself and configure it based on the presence of a camera.
Finding out if a device has camera support is easy. Check the Device Support section for more information.
Quote from the guide:
Use the isSourceTypeAvailable: method
of the UIImagePickerController class
to determine if the camera is
available. For more information, see
“Taking Pictures with the Camera.”