Latest 0.0.4
Homepage https://github.com/MeteoriteMan/CHScanConfig
License MIT
Platforms ios
Frameworks Foundation, UIKit, AVFoundation
Authors

二维码/条形码扫码、生成.

效果

见Demo

使用

 [CHScanConfig canOpenScan:^(BOOL canOpen) {
        if (canOpen) {
            self.scanConfig = [[CHScanConfig alloc] initWithScanView:self.view rectOfInterest:self.viewInterest.frame];
            self.scanConfig.scanResultBlock = ^(CHScanConfig *scanConfig, NSArray<NSString *> *stringValues) {
                NSLog(@"%@", stringValues);
            };
            [self.scanConfig startRunning];
        }
    }];

默认支持的是扫描QRCode.

需要自定义扫码类型的设置

/// 单独设置扫码类型
@property (nonatomic ,strong) NSArray <AVMetadataObjectType> *metadataObjectTypes;

也可以快速设置支持类型

/**
 扫码类型.二维码/条形码/QRCode/通用.默认QRCode
 */
@property (nonatomic ,assign) CHScanType scanType;

安装

使用 CocoaPods 集成.
首先在podfile中

pod 'CHScanConfig'

安装一下pod

#import <CHScanConfig/CHScanConfigHeader.h>

更新详情

0.0.4

修复了横屏情况下输出图片偏移的BUG.
现在支持自动转屏,转屏后扫码识别框的识别区域也会自动同步.

更新记录

CocoaPods出了点问题(推成功了终端显示失败).0.0.1、0.0.2、0.0.3版本相同

版本 更新内容
0.0.4 现支持转屏,重写识别框代码.
0.0.1~0.0.3 支持生成、识别二维码/条形码(扫码或者是图库中的).

Latest podspec

{
    "name": "CHScanConfig",
    "version": "0.0.4",
    "summary": "u626bu63cf/u751fu6210/u8bc6u522bu4e8cu7ef4u7801u3001u6761u5f62u7801u3001u5c4fu5e55u4eaeu5ea6u8c03u8282u7ec4u4ef6.",
    "homepage": "https://github.com/MeteoriteMan/CHScanConfig",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "u5f20u6668u6656": "[email protected]"
    },
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/MeteoriteMan/CHScanConfig.git",
        "tag": "0.0.4"
    },
    "source_files": "CHScanConfig/**/*.{h,m}",
    "frameworks": [
        "Foundation",
        "UIKit",
        "AVFoundation"
    ]
}

Pin It on Pinterest

Share This