CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Apr 2016 |
Maintained by David Muir.
A barcode scanner module for your iOS apps.
The KINBarCodeScanner example project contains a fully functional example of a KINBarCodeScanner implementation. Test it out using the graphic below.
The example project provides a number of options to demonstrate KINCodeScanner's code validation capabilties. When multiple codes are highlighted in green as detectable, you can tap on a code to select it.
KINBarCodeScanner provides a UIViewController wrapper to AVCaptureSession's built-in ability to process barcodes and QR codes in iOS 7+.
KINBarCodeScanner consists of a single component:
KINBarCodeScannerViewController
- a UIViewController that contains a full featured bar code scanner.
Basic Example
KINBarCodeScannerViewController should be presented modally.
KINBarCodeScannerViewController *barCodeScannerViewController = [[KINBarCodeScannerViewController alloc] init];
barCodeScannerViewController.delegate = self;
[self presentViewController:barCodeScannerViewController animated:YES completion:nil];
Advanced Initialization Example
KINBarCodeScannerViewController can be initialized to detect only specific code types. The following example configures KINBarCodeScannerViewController to only detect QR codes.
KINBarCodeScannerViewController *barCodeScannerViewController = [[KINBarCodeScannerViewController alloc] initWithMetadataObjectTypes:@[AVMetadataObjectTypeQRCode]];
initWithMetadataObjectTypes
accepts an NSArray of AVMetadataObjectType string constants.
platform :ios, '7.0'
pod 'KINBarCodeScanner'