iPhone 4s: Restoring physical camera button functionality - iphone

In an app I'm currently working on I'm using an instance of UIImagePickerController with a custom overlay. Everything works great, but now I'm try to figure out if there's a way to use the physical camera button to take pictures while using my instance of UIImagePickerController.
I believe that the physical camera button is new on iPhone 4 (or is it 4s?) and that this button does double-duty as the volume up button. For some reason, this button does not work with my custom instance of UIImagePickerController.
Does anyone know if it's possible to get it working again?
Thanks!

Here's a tutorial on how to use the volume buttons for camera shutter:
http://ios.biomsoft.com/2011/12/07/taking-control-of-the-volume-buttons-on-ios-like-camera/

Related

Implement the Flash button animation as in iPhone camera in my app?

Im developing a camera app, I want to implement the same animation that happens in default iPhone camera app when you click on the flash button, i.e once you click on the flash button, we can see the other 2 buttons animating, and once you click any one button it again animates and hides.
how can i do this?
Thanks in advance.
Take a look at DDExpandableButton which is able to do exactly this and even includes example code for creating a flash button. https://github.com/ddebin/DDExpandableButton

Recreating iOS Camera app overlay buttons

I'm trying to recreate the Camera.app buttons and interface from iOS in my own, custom camera application built on GPUFilter. Specifically talking about the Flash, Options, and front vs back camera button toggle that are across the top of the app:
Curious to know if these are built into Storyboards as UI objects or if there's another easy way to recreate these without totally reprogramming. I'm also interested in using the overlay table view that they use (in picture above) for options.
Thanks!
You can using AVCamCaptureManager and AVCamRecorder classes. Apple has a demo program build on its developer site here.

adding native iphone camera zoom slider and youtube player controller to my app

Sorry for squeezing two questions into one, just figured those may be related and with respect to the DB storage at SO...
I am trying to find out a way to add the iphone camera native zoom slider as well as something similar to the youtube app player controller. I am guessing that the youtube one may be a custom button or something, but did not find a way to add the zoom slider.
I would like to add those two as overlay to a camera view that I am using within the app.
You could extract the UIKit artwork with https://github.com/0xced/UIKit-Artwork-Extractor.For the movie player controls you could use three UIButton and one UISlider.For the camera control you could subclass UIControl or UISlider.

Accessing camera and placing a button - Beginner

I am creating an application that is similar to the camera app provided in the iPhone. When the user launches the application, the camera should pop out, But i need a button to be displayed on the camera's view. (Similar to the slider provided in the camera app).
1.) Can this be done ?
2.) Are there any tutorials on this ? sample code to begin or any suggestions that might help
Here are your answers:
Yes.
http://www.musicalgeometry.com/?p=1273 //Sample code is in the tutorial.
Mark it correct if it helps.
Cheers,
Yes, you can create your overlay camera view. Just set yourPicker.showsCameraControls=NO; and pass your view to your picker camera overlay view: yourPicker.cameraOverlayView=yourView;
This can be done.
First checkout Access the camera with iPhone SDK for accessing the camera.
Next adding a button can be achieved by setting cameraOverlayView property

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.