关于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;

    }

 

}

posted @ 2016-01-23 16:54  溺水的小小鱼  阅读(229)  评论(0编辑  收藏  举报