iOS二维码第三方库ZBar集成步骤

github地址: https://github.com/bmorton/ZBarSDK


Step1.使用ZBarSDK 需要导入的framework

1.AVFoundation.framework

2.CoreMedia.framework

3.CoreVideo.framework

4.QuartzCore.framework

5.libiconv.dylib

Step2. 导入头文件并声明使用协议 

       #import "ZBarSDK.h"     

       XxxViewController


Step3. coding 

- (IBAction)scan:(id)sender {

    ZBarReaderViewController * reader = [[ZBarReaderViewController alloc] init];
    reader.readerDelegate = self;
    reader.showsZBarControls = YES;

ZBarImageScanner * scanner = reader.scanner; [scanner setSymbology:ZBAR_I25 config:ZBAR_CFG_ENABLE to:0]; [self PResentViewController:reader animated:YES completion:nil];}
 
  


















你可能感兴趣的:(iOS二维码第三方库ZBar集成步骤)