Skip to content

Nemocdz/CDZQRScanView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CDZQRScanView

This is a small and configurable QRCode scanner with Animation.

Demo Preview

Changelog

  • Change 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.

About

二维码扫描组件

Resources

License

Stars

Watchers

Forks

Packages

No packages published