关于ZBarReaderView 打开闪光灯
关于ZBarReaderView 打开闪光灯
ZBarReaderView *readerView;
- (void)changeLight:(id)sender{
UIButton *btn = (UIButton *)sender;
if (btn.selected) {
btn.selected = NO;
readerView.torchMode = 0;
}else{
btn.selected = YES;
readerView.torchMode = 1;
}
}