Introduction
With the recent release of NucliOS 2014 Volume 1 we've added an iOS control that can render 12 different barcode types. The graphic below shows all of the currently supported types.
Creating Barcodes
Creating a barcode with IGBarcodeView is super simple. You create an instance of IGBarcodeView like any other view, and then set the value to render.
Objective-C
CGRect barcodeRect = CGRectMake(0, 0, 300, 200); IGBarcodeView *barcode = [[IGBarcodeView alloc] initWithFrame:barcodeRect barcodeType:IGBarcodeTypeCode128]; barcode.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight; [barcode setValue:@"Getting Started"]; [self.view addSubview:barcode];
C# (Xamarin.iOS)
RectangleF barcodeRect = new RectangleF(0, 0, 300, 200); IGBarcodeView barcode = IGBarcodeView.CreateBarcodeFrame(IGBarcodeType.IGBarcodeTypeCode128, barcodeRect); barcode.AutoresizingMask = UIViewAutoresizing.FlexibleWidth|UIViewAutoresizing.FlexibleHeight; barcode.SetValue ("Getting Started"); this.View.Add (barcode);
The final result when the IGBarcodeView renders is shown below.
Further Reference
In addition to setting the barcode value, the IGBarcodeView allows for customizing the font name used, text color and even the barcode color. Below are links to the API reference page as well as the developer's guide, NucliOS forums & NucliOS trial.
API Reference for IGBarcodeView - http://help.infragistics.com/iOS/2014.1/gridapi/Classes/IGBarcodeView.html
Developer's Guide Documentation for IGBarcodeView - http://help.infragistics.com/iOS/2014.1/?page=IGBarcodeView.html
NucliOS Forums - http://www.infragistics.com/community/forums/default.aspx?GroupID=92
NucliOS Trial - http://www.infragistics.com/products/ios/