Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 900 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 900 Bytes

AVQRCodeReader

The AVQRCodeReader is a simple QRCode reader. It is based on the AVFoundation framework from Apple.

preview

Usage

Download the project and copy the AVQRCodeViewController folder into your project and then simply #import "AVQRCodeViewController.h" in the file(s) you would like to use it in.

Initialization

To initialize an instance of AVQRCodeViewController:

objective-c

AVQRCodeViewController *qrVC = [[AVQRCodeViewController alloc] initWithDismissBlock:^(AVQRCodeViewController *qrViewController, NSString *scannedValue) {
    NSLog(@"Value : %@", scannedValue);
    [qrViewController dismissViewControllerAnimated:YES completion:nil];
}];

[self presentViewController:qrVC animated:YES completion:nil];