Create Barcodes in iOS with Ease Using NucliOS (Obj-C & C#)

Torrey Betts / Wednesday, April 23, 2014


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.

codabar, code 39, code 39 extended, code 128, ean 8, ean 13, interleaved 2 of 5, planet, postnet, standard 2 of 5, upc-a, upc-e

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.


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.

Creating Barcodes

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 -
Developer's Guide Documentation for IGBarcodeView -
NucliOS Forums -
NucliOS Trial -

By Torrey Betts