Quote:
Originally Posted by JasonR
Since you are doing something that's not standard, there's not going to be sample code. So your choice is either try it yourself, or wait until someone else does and posts it. (If you can wait 3-4 weeks, that's when I get my iPhone 4).
If I were you, I would play with the devices array, taking each element and setting flashMode until one of them turned on the flash. IT might look something like this:
Code:
NSArray *devices = [AVCaptureDevice devices];
for (AVCaptureDevice *device in devices) {
device.flashMode = AVCaptureFlashModeOn;
}
Keep in mind, I'm guessing since I don't have the hardware, but see if that gets you started.
|
Ok. I will look at it and see if I can get it working. Thanks for your help.