Quote:
Originally Posted by mohit2305
First you need to
assign Camera as UIImagePicker Source
then delegate method
then calling a function to open shutter
then take picture
|
Hi,
I am having a problem with the use of takePicture method on an iphone. I am basically trying to take pictures using the -(void)takePicture method. However, I could not find a good tutorial that explains how to do this. I am new to the iphone app development.
Currently, what I have is a view controller which
creates a picker controller,
sets the picker controller's properties (sourcetype, toolbarhidden, etc.)
creates an overlay view and assigns it to the picker (picker.cameraOverlayView = overlay).
sets the delegate to self
and shows the picker with [self presentModalViewController

icker animated:NO].
On the overlayed view, I have a button. When this button is called, it is supposed to activate the camera's takePicture method. However, I am not sure how to call the picker pointer from inside the overlay view. I'd appreciate any source code examples, but pseudo-code is welcome as well.
Thanks, K.