I am using an iPod to scan tickets, But whenever i scan the ticket the flash light flashes. If I turn off the flash light in the camera, It is working fine(Does not flash).Is there any other way to do this other than turning off the flash light of the camera manually?? I am using Zbar library. I am using xamarin to develop the app.
you can do something like,
AVCaptureDevice *mDevice = mReader.readerView.device;
[mDevice setTorchModeOnWithLevel:0.5 error:nil]; // you can use different torchmode!
or
[myDevice setTorchMode:AVCaptureTorchModeOff]; // off torchmode
Dopn't forget to import AVFoundation
.
You can refer this answewr or this answer for more details.
Hope this will help :)