- AVMetadataObjectTypeAztecCode,
- AVMetadataObjectTypeCode128Code,
- AVMetadataObjectTypeCode39Code,
- AVMetadataObjectTypeCode39Mod43Code,
- AVMetadataObjectTypeCode93Code,
- AVMetadataObjectTypeEAN13Code,
- AVMetadataObjectTypeEAN8Code,
- AVMetadataObjectTypePDF417Code,
- AVMetadataObjectTypeQRCode,
- AVMetadataObjectTypeUPCECode
Barcode scanning is general feature which require in most of the application so here is the simple barcode scanning code with just 2-3 steps. This the sample project so you can test it before implementing in the working code. Below is the steps how to implement this code in your code.
Download the zip file and drag "BarCodeScannerView" folder to your project.
Import class file "#import "BarCodeScannerView.h" in your view controller file.
Write the following method that will return you the scanned text.
[BarCodeScannerView showScannerWithCompletionBlock:^(NSString *result) {
if (result != nil && ![result isEqualToString:@""]) {
//some text has been scanned and text will return.
NSLog(@"%@",result);
}
}];
Run project and scan barcode.
Simform Solutions Pvt Ltd