Inherits from BCKCode : NSObject
Conforms to BCKCoding
Declared in BCKStandard2of5Code.h

Overview

Specialized subclass of BCKCode to represent Standard/Industrial 2 of 5 barcodes.

Instance Methods

initWithContent:error:

Initializer for the BCKStandard2of5Code class without the modulo 10 check digit.

- (instancetype)initWithContent:(NSString *)content error:(NSError *__autoreleasing *)error

Parameters

content

The content string to be encoded by the subclass.

error

Optional output parameter to take an NSError in case the content cannot be encoded by this barcode class. Pass nil if not error information is not required.

Return Value

An instance of the BCKStandard2of5Code class without the module 10 check digit. Returns nil and an NSError instance if the content cannot be encoded

Declared In

BCKStandard2of5Code.h

initWithContent:withModulo10:error:

Designated initializer for the BCKStandard2of5Code class.

- (instancetype)initWithContent:(NSString *)content withModulo10:(BOOL)withModulo10 error:(NSError *__autoreleasing *)error

Parameters

content

The content string to be encoded by the subclass.

withModulo10

Whether the content string should be encoded including the modulo 10 check digit character.

error

Optional output parameter to take an NSError in case the content cannot be encoded by this barcode class. Pass nil if not error information is not required.

Return Value

An instance of the BCKStandard2of5Code class with the module 10 check digit when requested. Returns nil and an NSError instance if the content cannot be encoded

Declared In

BCKStandard2of5Code.h