Latest 1.0.0
Homepage https://github.com/tiancanfei/ADQRScanView
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit, AVFoundation
Authors

iOS原生扫码控件,可以任意改变扫码尺寸,限制扫描范围

使用办法如下

#import "QRcodeScanView.h"

@interface WMMaterialsScanAddVC ()<QRcodeScanViewDelegate>

/**扫描框*/
@property (nonatomic, strong) QRcodeScanView *scanView;

@end

@implementation WMMaterialsScanAddVC

- (void)viewDidLoad {
    [super viewDidLoad];    
    [self.view addSubview:self.scanView];
}

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    [self.scanView startScan];
}

#pragma mark setter getter

- (QRcodeScanView *)scanView
{
    if (!_scanView) {
        _scanView = [[QRcodeScanView alloc] initWithFrame:self.view.bounds];
        _scanView.visibleRect = CGRectMake(20, 90, 200, 300);
        _scanView.delegate = self;
    }
    return _scanView;
}

#pragma mark - 代理

#pragma mark - ADQRcodeScanViewDelegate

- (void)scanView:(QRcodeScanView *)scanView didFinishedScanWithCodeString:(NSString *)codeString
{
    MyLog(@"%@",codeString);
}

Latest podspec

{
    "name": "ADQRScanView",
    "version": "1.0.0",
    "summary": "u8f6eu64adu56fe",
    "description": "iOSu539fu751fu626bu7801",
    "homepage": "https://github.com/tiancanfei/ADQRScanView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "u5b89u5fb7u822a": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/tiancanfei/ADQRScanView.git",
        "tag": "1.0.0"
    },
    "source_files": "ADQRScanViewExample/QRcodeScanView/*.{h,m}",
    "public_header_files": "ADQRScanViewExample/QRcodeScanView/*.h",
    "frameworks": [
        "UIKit",
        "AVFoundation"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This