0

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

Illep
  • 16,375
  • 46
  • 171
  • 302

3 Answers3

1

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;

Mat
  • 7,613
  • 4
  • 40
  • 56
  • Ok, then the defult camera app provides the focus by touch feature, so if i use a overlay view will the focus by touch feature still work ? – Illep Apr 03 '12 at 15:48
  • moreover you can add an action to a button that is inside your overlayview that calls `[self.picker takePicture];`...this because `showsCameraControls` is set to NO. – Mat Apr 03 '12 at 15:55
1

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

Community
  • 1
  • 1
rad182
  • 85
  • 3
  • 10
1

Here are your answers:

  1. Yes.
  2. http://www.musicalgeometry.com/?p=1273 //Sample code is in the tutorial.

Mark it correct if it helps.

Cheers,

Nilesh
  • 1,493
  • 18
  • 29