Ok. So I have a ViewController which implements the UIImagePickerControllerDelegate. Great. I also have an overlay view going on top of my picker. I have a button on said overlay that I want to call takePicture on.
My question is, How is this done? takePicture isn't something I need to write myself is it? It's defined in UIImagePickerController right?
The picker modally pops up fine, i can see an image through the camera, but when I go to push the button to take the picture, I have a problem.
I have this code set up on the button:
[button addTarget:self action:@selector(takePicture) forControlEvents:UIControlEventTouchUpInside];
With the above, I usually get an NSException error, but when I call takePicture from a separate method, it simply doesn't fire.
As part of this, should my picker delegate be set to the overlay or the viewcontroller that presents the picker?
Also, should my overlay AND my view controller implement the picker delegate in the header?
Thanks in advance.