Latest 1.0.9
Homepage https://github.com/CoderAzreal/AZQrCodeScanController
License MIT
Platforms ios 8.0, requires ARC
Authors

介绍

AZQrCodeScanController 是对iOS原生框架AVFoundation, 一句话即可调用iOS原生扫码。

installation

    // 全部导入(包含OC和swift)
    pod 'AZQrCodeScanController'
    // 只导入swift
    pod 'AZQrCodeScanController/swift'
    // 只导入OC
    pod 'AZQrCodeScanController/oc'

初始化方法 (OC)

    AZQrCodeScanController *c = [[AZQrCodeScanController alloc] initWithScanComplete:^*(NSString *result) {
        NSLog(@"%@", result);
    }];
    [self presentViewController:c animated:true completion: nil];

初始化方法(swift)

    let c = AZQrCodeScanController { (result) in
        print(result)        
        }
        present(c!, animated: true, completion: nil)

效果图

示例图

项目地址

github地址

Latest podspec

{
    "name": "AZQrCodeScanController",
    "version": "1.0.9",
    "platforms": {
        "ios": "8.0"
    },
    "summary": "iOSu539fu751fu626bu7801u63a7u5236u5668,u5bfcu5165u65f6u4f7fu7528pod 'AZQrCodeScanController/swift' u6216 pod 'AZQrCodeScanController/oc'",
    "homepage": "https://github.com/CoderAzreal/AZQrCodeScanController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "AZReal": "[email protected]"
    },
    "source": {
        "git": "https://github.com/CoderAzreal/AZQrCodeScanController.git",
        "tag": "1.0.9"
    },
    "requires_arc": true,
    "subspecs": [
        {
            "name": "swift",
            "source_files": "AZQrCodeScanController/AZQrCodeScanController-Swift/*.{swift}",
            "resources": "AZQrCodeScanController/AZQrCodeScanController/AZQrCode.bundle"
        },
        {
            "name": "oc",
            "source_files": "AZQrCodeScanController/AZQrCodeScanController/*.{h,m}",
            "resources": "AZQrCodeScanController/AZQrCodeScanController/AZQrCode.bundle"
        }
    ]
}

Pin It on Pinterest

Share This