Latest 0.0.3
Homepage https://github.com/guakeliao/LwScanningByZBar
License MIT
Platforms ios 7.0, requires ARC
Dependencies TSMessages, libqrencode
Frameworks CoreVideo, CoreTelephony, CoreMedia, CoreGraphics, AVFoundation, QuartzCore
Authors

ScanningByZBar

  • ScanView 扫描二维码

    1.用ZbarSDK做的二维码扫面View,支持自定义扫描图层

    2.用法:

    • 支持用xib,直接将一个View改变成ScanView,在VC中加入回调代码即可:

          //扫描二维码
           self.scanVIew.callBack = ^(id data) {
              //data即扫描得到的字符串
               NSLog(@"hello:%@", data);
          };
  • RecognizeViewController 相册识别二维码

    1.用ZbarSDK做的二维码识别VC,暂不支持汉字二维码识别

    2.用法:

    • 在你的VC中,继承RecognizeViewController即可,加入回调代码:

          //识别二维码
          self.callBack = ^(id data) {
              NSLog(@"%@", data);
          };
  • CreateView 生成二维码(支持中文编码)

    1.。。。

    2.用法:

    • 支持Xib,将一个View改变车让那个CreateView,在VC中加入执行回调代码即可:

        [self.createView createImage:^(id image) {
              //image就是扫描得到的图片
               UIImage *image1 = image;
          }];

Latest podspec

{
    "name": "LwScanningByZBar",
    "version": "0.0.3",
    "summary": "u96c6u6210u4e8cu7ef4u7801u76f8u5173u529fu80fd:u626bu63cf.u8bc6u522b.u751fu6210",
    "description": "u96c6u6210u4e8cu7ef4u7801u76f8u5173u529fu80fd:u626bu63cf,u8bc6u522b,u751fu6210.u91c7u7528ZBar",
    "homepage": "https://github.com/guakeliao/LwScanningByZBar",
    "license": "MIT",
    "authors": {
        "guakeliao": "[email protected]"
    },
    "source": {
        "git": "https://github.com/guakeliao/LwScanningByZBar.git",
        "tag": "0.0.3"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": [
        "Pod/Classes/QRCostom/**/*.{h,m}",
        "Pod/Classes/ZBarSDK/Headers/**/*"
    ],
    "resource_bundles": {
        "LwScanningByZBar": [
            "Pod/Classes/QRCostom/LwScanningByZBar.bundle/*.png"
        ]
    },
    "vendored_libraries": "Pod/Classes/ZBarSDK/libzbar.a",
    "frameworks": [
        "CoreVideo",
        "CoreTelephony",
        "CoreMedia",
        "CoreGraphics",
        "AVFoundation",
        "QuartzCore"
    ],
    "libraries": "iconv",
    "dependencies": {
        "TSMessages": [
            "~> 0.9.12"
        ],
        "libqrencode": [
            "~> 3.4.2"
        ]
    }
}

Pin It on Pinterest

Share This