BCKMSICode Class Reference
Instance Methods
initWithContent:andCheckDigitScheme:error:
Designated initializer for BCKMSICode objects. initWithContent: may also be used, in that case the check digit scheme defaults to BCKMSICodeMod10CheckDigitScheme, the most commonly used scheme.
- (instancetype)initWithContent:(NSString *)content andCheckDigitScheme:(BCKMSICodeCheckDigitScheme)checkDigitScheme error:(NSError **)error
Parameters
- content
The content string to be encoded by the subclass.
- checkDigitScheme
The requested check digit scheme.
- error
Optional output parameter to take an
NSError
in case the content cannot be encoded by this barcode class. Passnil
if error information is not required.
Return Value
A BCKMSICode object encoding the content string using the requested check digit scheme. Returns nil
if the provided content cannot be encoded by the requested BCKCode subclass, the error object will provide error details.
Declared In
BCKMSICode.h