TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | May 2014 |
Maintained by Unclaimed.
This is a fork of Jeff Lamarche's Cocoa Barcodes project, with the code modified to work on the iPhone and iPad. In my testing, a CCD and laser scanner can read UPC and Code 128 barcodes directly from the screen w/ no issue. I haven't tested other barcodes yet.
Usage: You can add the project as a dependency to your existing project and add a target dependency on the static library target. Alternatively you can add the source code bulk to your own project.
If you use the static library dependency, you'll want to ensure that you are compiling your own project with the -ObjC
"Other Linker Flag" in your project settings.
To use the library, you'll want to include the relevant header file for the barcode you want to generate, as well as the UIImage category for generating the image.
#import "NKDUPCEBarcode.h"
#import "UIImage-NKDBarcode.h"
// etc...
NKDUPCEBarcode * code = [[NKDUPCEBarcode alloc] initWithContent:@"Your Barcode Contents"];
NSData * generatedPdf = [UIImage pdfFromBarcode:code]; // Generate the barcode as a PDF
UIImage * generatedImage = [UIImage imageFromBarcode:code]; // ..or as a less accurate UIImage
TODO:
Things that are missing:
Things that have changed:
Things that misbehave:
Things that have been fixed:
Current status:
Other contributors: