customize camera view size on iphone - iphone

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

Related

How is default zoom for photos set?

I am in the middle of creating a custom background page with simple UIImage inside a UIImageView.
What I am trying to do is to be able to fit my image the way photos app handles images.
for default portrait camera pics : seems like an aspectToFill?
for default landscape camera pics : aspectToFit for whole page (320,480)
other custom saved pics: ???
Here, I want to avoid as much empty space possible without hurting how images are perceived to the users.
Thanks for your suggestions
you must use aspectFit if you want to see the whole image, at the correct aspect ratio.
you are assuming that its aspectFill for portrait. But that'd be true only for a portrait image being viewed in Portrait (or a landscape image viewed in landscape).

IPhone UIImagepicker with camera showing camera roll thumbnail like default camera app?

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).

Displaying what the Camera can see in a View

How would I display what the Camera can see in a view as if you were using the Image Picker in Camera Mode?
Is this possible, to access the camera directly?
I should have looked further…
Check out this question iPhone: Camera Preview Overlay, which provides the below. link to a tutorial on how to do something very similar to my question.
http://www.musicalgeometry.com/archives/821

Is it possible to make persistent full-screen camera like System camera app?

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.

mpmovieplayer - can I do an end run?

I would like to be able to display a video on the iphone screen - preferably in a view so that I can control its display coordinates. I want to be able to load the view and overlap and partially overlap a subview ... is any of this feasible? I have read that mpmovieplayer is the only method for video display (and is full screen)? Any workarounds?
You can place an overlay view on top of the video player, but that is pretty much it. There is a sample application in the SDK that shows how to do this.