Skip to content

dilumn/MetaQR

Repository files navigation

MetaQR

MetaQR is for AVCaptureMetadataOutputObjectsDelegate new feature with iOS 7+ for scan QR Codes. From this MetaQR you can just drag & drop MetaQR files to your project & configure your project accordingly.

Add your MetaQR Frame size as you want & add it as a SubView. Then the camera will appear & scan the QR Code. You can use the output from @property *QRCode or use it as you want.

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like MetaQR in your projects.

Podfile

platform :ios, '7.0'
pod "MetaQR"

Usage

MetaQR *metaQR = [[MetaQR alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
metaQR.delegate = self;
[self.view addSubview:metaQR];

Add this delegate method and this delegate method will fire when the QRCode is detected

-(void)capturedMetaOutput:(AVCaptureOutput *)captureOutput didOutputMetadataObjects:(NSArray *)metadataObjects fromConnection:(AVCaptureConnection *)connection

Please note that this will not work on simulators because this uses the device camera

Credits

MetaQR was originally created by Dilum Navanjana for iOS.

Contact

Follow MetaQR on Blog (http://bcdilumonline.blogspot.com)

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published