Latest 1.0.1
Homepage https://github.com/Nemocdz/CDZQRScanView
License MIT
Platforms ios 8.0, requires ARC
Authors

This is a small and configurable QRCode scanner with Animation.

Demo Preview

Changelog

  • Add animation

Installation

Manual

Add "CDZQRScanView" files to your project

CocoaPods

Add pod 'CDZQRScanView' in your Podfile

Usage

#import "CDZQRScanView.h"

First,Init the view, set the delegate ,and config if you want.

- (CDZQRScanView *)scanView{
    if (!_scanView) {
        _scanView = [[CDZQRScanView alloc]initWithFrame:self.view.bounds];
        _scanView.delegate = self;
        _scanView.showBorderLine = YES;
        _scanView.scanRect = ...
          ...
    }
    return _scanView;
}

And Than,add the view and start.

[self.view addSubview:self.scanView];
[self.scanView startScanning];

At last,,deal the result in delegate.

- (void)scanView:(CDZQRScanView *)scanView pickUpMessage:(NSString *)message{
  //do some thing you want,for example
    [scanView stopScanning];
    [self showAlert:message action:^{
        [scanView startScanning];
    }];
}

Articles

iOS实现原生的二维码扫描界面

iOS原生二维码界面的一些注意点

Requirements

iOS 8.0 Above

TODO

Contact

License

CDZQRScanView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "CDZQRScanView",
    "version": "1.0.1",
    "summary": "A easy QRCode scanview",
    "homepage": "https://github.com/Nemocdz/CDZQRScanView",
    "license": "MIT",
    "authors": {
        "Nemocdz": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Nemocdz/CDZQRScanView.git",
        "tag": "1.0.1"
    },
    "source_files": [
        "CDZQRScanView",
        "CDZQRCodeDemo/CDZQRScanView/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This