BCKPOSTNETCode Class Reference
| Inherits from | BCKCode : NSObject |
| Declared in | BCKPOSTNETCode.h |
Overview
Specialized subclass of BCKCode representing POSTNET codes. “A”, “C” and “DPBC” variants are supported. When using initWithContent:error: instead of the three initialisers listed below ensure to pass it the string including any leading zeroes but without any hyphens.
Instance Methods
initWithZIP:andZipPlus4:andDeliveryPointCode:error:
Designated initializer for the BCKPOSTNETCode class.
- (instancetype)initWithZIP:(NSString *)zip andZipPlus4:(NSString *)zipPlus4 andDeliveryPointCode:(NSString *)deliveryPointCode error:(NSError *__autoreleasing *)errorParameters
- zip
The 5-digit ZIP code with any leading zeroes.
- zipPlus4
The 4-digit ZIP+4 code.
- deliveryPointCode
The 2-digit delivery point code.
- 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 BCKPOSTNETCode class with a check digit. Returns nil and an NSError instance if the content cannot be encoded.
Declared In
BCKPOSTNETCode.hinitWithZIP:andZipPlus4:error:
Initializer for the BCKPOSTNETCode class.
- (instancetype)initWithZIP:(NSString *)zip andZipPlus4:(NSString *)zipPlus4 error:(NSError *__autoreleasing *)errorParameters
- zip
The 5-digit ZIP code with any leading zeroes.
- zipPlus4
The 4-digit ZIP+4 code.
- 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 BCKPOSTNETCode class with a check digit. Returns nil and an NSError instance if the content cannot be encoded.
Declared In
BCKPOSTNETCode.hinitWithZIP:error:
Initializer for the BCKPOSTNETCode class.
- (instancetype)initWithZIP:(NSString *)zip error:(NSError *__autoreleasing *)errorParameters
- zip
The 5-digit ZIP code with any leading zeroes.
- 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 BCKPOSTNETCode class with a check digit. Returns nil and an NSError instance if the content cannot be encoded.
Declared In
BCKPOSTNETCode.h