iPhone GS1-128/EAN-128 Generator generate, create barcode GS1-128/EAN-128 images in iPhone (iOS) application

Generate & Print Code GS1-128/EAN-128 barcode images in iPhone (iOS) Application

  • Fast create linear and 2D barcodes in iOS apps.
  • Source code is provided to build with iOS SDK that best fits for your application.
  • Easy to integrate the barcode generation functionality into your developmental iPhone projects
  • Completely written in Objective-C
  • Mac OS X 10.6 and greater are required
  • Compatible with Xcode 3.2 and above
  • Compatible with iOS 3.2 and above version, and works with iPhone 6,iPhone 5, iPhone 4S, iPhone 4, iPhone 3GS, etc
  • All barcodes are compatible with the latest barcode symbologies ISO standard
  • All the functionality of barcode type control is implemented in a single, small file

Index


 

iPhone EAN 128 Barcode Generator Introduction

iPhone EAN 128 Generator SDK is a EAN 128 generator component designed for iOS project developers who need add EAN 128 creation features into their developmental applications for iPhone.

  • EAN 128 generation support on desktops as well as servers
  • Generate EAN 128 on iPhone client apps, without communicating with a server
  • Complete iPhone EAN 128 Generator Guide provided with iPhone EAN 128 generation demo project

GS1-128/EAN-128 is an application standard of the GS1 implementation using the Code 128 barcode specification. The former correct name was UCC/EAN-128. Other no longer used names have included UCC-128 and EAN-128. GS1-128 uses a series of Application Identifiers to include additional data such as best before dates, batch numbers, quantities, weights and many other attributes needed by the user.

 

GS1-128/EAN-128 Valid Data Scope

iPhone Barcode EAN 128 supports:

  • all 128 characters of ASCII
  • values 128-255 in accordance with ISO 8859-1. There are referred to as extended ASCII.


Creating GS1-128 (UCC/EAN-128) Compliant BarCodes in iPhone project

GS1 Function Code 1 (FNC1) and the Application Identifier (AI)

OnBarcode iPhone Barcode Generator allows easily to add application identifiers in GS1 128 / EAN 128, by add parentheses to AIs.

For example, to encode AI (00), with data 350123451234567894, with second AI (21), with data 01234567, you need pass string "(00)350123451234567894(21)01234567" to barcode Data property DataMsg

 

How to generate barcode in Objective-C?

  1. Create a barcode object
  2. Set barcode properties
  3. call drawWithView() method, to paint barcode on the canvas.

Sample Code:
- (void)drawRect:(CGRect)rect {
    // Drawing code
    
    OBLinear *pLinear = [OBLinear new];
    [pLinear setNBarcodeType: OB_EAN128];
    [pLinear setPDataMsg: [[NSString alloc] initWithString: (@"(10)12345")]];
    [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];
    
}
 

iPhone EAN-128/GS1-128 Generator - Barcode Properties


Category Class Properties Default Comments
Basic nBarcodeType OB_EAN128 (11) OBBarcodeType. Barcode type.
pDataMsg "" NSString. Barcode data value to encode
bAddCheckSum true BOOL. AddCheckSum property is not applied here. AddCheckSum property is not applied. iPhone Barcode Generator will automatically add a check sum in the end.
 
EAN 128
Special
bProcessTilde false BOOL. Set the processTilde property to true, if you want use the tilde character "~" to specify special characters in the input data. Default is false.
~NNN: is used to represent the ASCII character with the value of NNN. NNN is from 000 - 255.
 
Size Related uom 0 Unit of meature for all size related setting in the library.
0: pixel; 1: cm; 2: inch.
fX 1 width of barcode module (narrow bar), default is 1 pixel
fY 30 barcode module height, default is 30 pixel
fBarcodeWidth 0 generted barcode image width
fBarcodeHeight 0 generted barcode image height
fLeftMargin 0 image left margin
fRightMargin 0 image right margin
fTopMargin 0 image top margin
fBottomMargin 0 image bottom margin
nResolution 72 in DPI
nRotate 0 OBRotate. Valid values:
OB_Rotate0 = 0,
OB_Rotate90 = 1,
OB_Rotate180 = 2,
OB_Rotate270 = 3
 
Text
&
Color
bShowText true If true, display barcode data text, otherwise do not display.
bShowCheckSumChar true If true, display the check sum character in the end of data, if there is a check sum.
pTextFont Arial, Plain, 11 NSFont - Barcode text font style
fTextMargin 6 Space between barcode and barcode data text, default is 6 pixel





iPhone Barcode Generator Supporting Barcode Types





OnBarcode is a market-leading provider of barcode generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides high quality tutorials and guides for various linear, 2d barcode information, such as C# Barcode, QR Code C#, QR Code VB.NET, QR Code ASP.NET, QR Code .NET, ASP.NET Barcode. OnBarcode barcode products are supported by RasterEdge .NET HTML5 Document Viewer high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.