BCKStandard2of5Code Class Reference
Instance Methods
initWithContent:error:
Initializer for the BCKStandard2of5Code class without the modulo 10 check digit.
- (instancetype)initWithContent:(NSString *)content error:(NSError *__autoreleasing *)errorParameters
- content
The content string to be encoded by the subclass.
- error
Optional output parameter to take an
NSErrorin case the content cannot be encoded by this barcode class. Passnilif 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.hinitWithContent:withModulo10:error:
Designated initializer for the BCKStandard2of5Code class.
- (instancetype)initWithContent:(NSString *)content withModulo10:(BOOL)withModulo10 error:(NSError *__autoreleasing *)errorParameters
- 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
NSErrorin case the content cannot be encoded by this barcode class. Passnilif 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