iPhone Code 128 Generator generate, create barcode Code 128 images in iPhone (iOS) application
Generate & Print Code 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 Code 128 Barcode Generator Introduction
iPhone Code 128 Generator SDK is a Code 128 generator component designed for iOS project developers who need add Code 128 creation features into their developmental applications for iPhone.
- Code 128 generation support on desktops as well as servers
- Generate Code 128 on iPhone client apps, without communicating with a server
- Complete iPhone Code 128 Generator Guide provided with iPhone barcode generation demo project
data matrix c#,
free bulk qr code generator excel,
print barcode c# zebra,
printing barcode vb.net,
.net barcode library open source,
.net barcode reader sdk
Code 128 is a very high-density barcode symbology. (A special version of it called GS1-128 is used extensively world wide in shipping and packaging industries.) It is used for alphanumeric or numeric-only barcodes.
Code 128 Valid Data Scope
iPhone Barcode Code 128 supports:
- all 128 characters of ASCII
- values 128-255 in accordance with ISO 8859-1. There are referred to as extended ASCII.
How to generate barcode in Objective-C?
- Create a barcode object
- Set barcode properties
- call drawWithView() method, to paint barcode on the canvas.
Sample 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];
}
iPhone Code-128 Generator - Barcode Properties
Category |
Class Properties |
Default |
Comments |
Basic |
nBarcodeType |
OB_CODE128 (7) |
OBBarcodeType. Barcode type.
OB_CODE128 = 7,
OB_CODE128A = 8,
OB_CODE128B = 9,
OB_CODE128C = 10.
|
pDataMsg |
"" |
NSString. Barcode data value to encode |
bAddCheckSum |
true |
BOOL. AddCheckSum property is not applied here. iPhone Barcode Library will always add a check character between encoded data and stop character. |
|
Code 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. |
nApplicationIndicator |
- |
- |
|
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