Hi, i want to write a method to call - (void)takePicture but the problem is this
I have created a picker object (with the proper source type) but the problem is this…
I need to call that method, i'm guessing that it needs to be called on the picker object… [picker takePicture]; but the method needs to be outside the pickers method..
So i've got this
-(IBAction)takePict {
//Set up picker with sourcetype of camera
}
-(void) takePictureMethod {
// this is where i'm stuck
}
Hi, i want to write a method to call - (void)takePicture but the problem is this
I have created a picker object (with the proper source type) but the problem is this…
I need to call that method, i'm guessing that it needs to be called on the picker object… [picker takePicture]; but the method needs to be outside the pickers method..
So i've got this
-(IBAction)takePict {
//Set up picker with sourcetype of camera
}
-(void) takePictureMethod {
// this is where i'm stuck
}
Use The Delegate of UIIMagePickerControll
That Is - (void)imagePickerControllerUIImagePickerControll er *)picker didFinishPickingMediaWithInfoNSDictionary *)info
I need to call that method, i'm guessing that it needs to be called on the picker object… [picker takePicture]; but the method needs to be outside the pickers method..
any method defined in the documentation can becalled from outside by [pointerToInstance method];
So you probably just need to get a pointer to the image picker, which is easy, because you are instantiating it to show it.
__________________
regards
Oliver Drobnik Cocoanetics - Our DNA is programmed in Objective-C.
Cocoanetics Parts Store – easy to use yet professionally looking components that you can use to spruce up your own apps. Augmented Reality, Calendar Control, Pin Lock or Purchase Button are only some examples. You get full source code, no static library crap, and lifetime support. Check it out today!
assign Camera as UIImagePicker Source
then delegate method
then calling a function to open shutter
then take picture
I'm trying to do basically the same thing as the original post. For some reason, when I call takePicture, I can't get at the picture that was captured.
Is there something that needs to happen to get this method to be called once the picture is taken? Currently I have the method typed in my code, but that is it. I don't see it being "linked" to anything else.
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 presentModalViewControllericker 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.