iPhone Barcode Generator for iPhone Objective-C

Generate, Create, Draw, Print Barcodes using iPhone Objective-C



iPhone Barcode is an iPhone barcode generator library which generates high quality 1D and 2D barcodes.



iPhone Barcode Introduction

  • 100% written in Objective-C for IPhone platform

  • Developer Licenses for this library are royalty-free and perpetual

  • Create GIF & JPEG files images with the class library

  • Product Source code provided with the purchase of the Unlimited Developer License with Source Code





iPhone Barcode Key Features

  • Royalty free with the purchase of a Developer License

  • High quality images with GIF, JPEG, and PNG support are generated that do not contain any distortion.

  • Automatic checksum digit calculations may be enabled or disabled for linear (1D) symbologies.

  • Orientation can be set to 0, 90, 180 or 270 degrees.

  • Flexible sizing options allow changes to the X, Y dimension, wide to narrow ratio, barcode width and height, margins and the white space between the main barcode and supplement barcode in the barcode image.

  • Text display options allow the human-readable characters to be displayed or not.

  • Graphic & Font configuration options include settings of the foreground and background colors and fonts for human-readable characters.



Install & run iPhone Barcode Generator Library demo project

To help you easily test our iPhone Barcode Generation Library, we include one demo project in the trial package.

  1. Download the evaluation version of iPhone Barcode Generator Library. (download it now)

  2. Under folder "IPhoneBarcodeClient", copy folder "OnBarcodeIPhoneClient" to your Mac computer

  3. Click file "OnBarcodeIPhoneClient.xcodeproj" to open the demo project

  4. In Xcode, go to Menu "Project", and click item "Edit Project Settings"

  5. Set "Base SDK" to your own SDK version, we are using SDK 3.1.2 to develop the demo project

  6. Go to "Targets", right click "OnBarcodeIPhoneClient", select "Get Info"

  7. In "Build" tab, Set "Header Search Paths" to "demo project path/OnBarcodeIPhoneClient/${BUILD_STYLE}-${PLATFORM_NAME}/usr/local/include".

  8. Run the project, in simulator, click the "Create Barcode" button above to view the demo chart



Install iPhone Barcode Generator Library to your iPhone application

  • To integrate iPhone Barcode Generator in iPhone simulator, use the library files under folder "Release-iphonesimulator"

  • To integrate iPhone Barcode Generator in iPhone device, use the library files under folder "Release-iphoneos"



Barcode Standards/Symbologies & Developer Guide

Sample Objective-C code:
- (void)drawRect:(CGRect)rect {
    // Drawing code
    
    OBLinear *pLinear = [OBLinear new];
    [pLinear setNBarcodeType: OB_CODE128A];
    [pLinear setPDataMsg: [[NSString alloc] initWithString: (@"AB")]];
    //[pLinear setPSupData: [[NSString alloc] initWithString: (@"14562")]];
    [pLinear setFX: USER_DEF_BAR_WIDTH];
    [pLinear setFY: USER_DEF_BAR_HEIGHT];
    
    [pLinear setFLeftMargin: (USER_DEF_LEFT_MARGIN)];
    [pLinear setFRightMargin: (USER_DEF_RIGHT_MARGIN)];
    [pLinear setFTopMargin: (USER_DEF_TOP_MARGIN)];
    [pLinear setFBottomMargin: (USER_DEF_BOTTOM_MARGIN)];
    
    [pLinear setNRotate: (OB_Rotate0)];
    
    UIFont *pTextFont = [UIFont fontWithName: @"Arial" size: 8.0f];
    [pLinear setPTextFont: pTextFont];
    
    [pLinear drawWithView: (self)];
    [pLinear release];
    
}


If you get problem to integrate the library into your app, our iPhone Barcode Generator FAQ may help you.



iPhone Barcode Free Evaluation Download



Purchase iPhone Barcode Licenses