二維二維碼的基類。 更多...
#include <AQRBarcode.h>
實體方法 | |
(instancetype) | - initWithStart:data: |
用於大多數數據將被自動編碼到條形碼的情況。 | |
(instancetype) | - initWithStart:manuallyEncodedData: |
這用於需要手動編碼條形碼數據的情況。 | |
![]() | |
(NSString *) | - NS_REQUIRES_SUPER |
![]() | |
(NSString *) | - description |
返回可以發送到打印機的字符串。 | |
屬性(properties) | |
id< IPoint > | start |
二維碼的起始點。 | |
NSString * | data |
自動編碼的數據。手動編碼的 DataManuallyEncoded 優先於自動編碼。 | |
NSArray< NSArray * > * | dataManuallyEncoded |
手動編碼的數據。手動編碼優先於自動編碼。 | |
QRCodeMaskEnum | mask |
用於生成二維碼的掩碼。 | |
QRCodeModelEnum | model |
二維碼的模型。 | |
QRCodeErrorCorrectionEnum | errorCorrection |
二維碼的錯誤更正級別。 | |
id< ICellSquare > | cellSize |
構成二維碼的單元格的大小。 | |
![]() | |
id< IRuler > | ruler |
id< IPoint > | start |
NSString * | data |
RotateEnum | rotation |
![]() | |
id< IPoint > | start |
條碼開始的位置。 | |
NSString * | data |
條碼的內容。 | |
![]() | |
id< IRuler > | ruler |
![]() | |
RotateEnum | rotation |
![]() | |
id< ICellSquare > | cellSize |
條碼單元大小。較大的單元大小會使條碼占用更大的面積。 | |
二維二維碼的基類。
在二維碼中編碼的數據可以是自動編碼的或手動編碼的。除非需要優化存儲在條形碼中的數據量,否則應使用自動編碼。
- (instancetype) initWithStart: | (id< IPoint >) | start | |
data: | (NSString *) | data |
用於大多數數據將被自動編碼到條形碼的情況。
在PglQRBarcode, 及 QRBarcode重新實作.
- (instancetype) initWithStart: | (id< IPoint >) | start | |
manuallyEncodedData: | (NSArray< NSArray * > *) | dataManuallyEncoded |
這用於需要手動編碼條形碼數據的情況。
在QRBarcode重新實作.
|
readwritenonatomicstrong |
構成二維碼的單元格的大小。
|
readwritenonatomicstrong |
自動編碼的數據。手動編碼的 DataManuallyEncoded 優先於自動編碼。
數據可以是自動編碼的或手動編碼的。如果有手動編碼的數據,則此自動編碼數據將被忽略。
手動編碼的數據。手動編碼優先於自動編碼。
數據可以是自動編碼的或手動編碼的。如果有自動編碼的數據,則將忽略該數據,使用此手動編碼的數據。
對於手動編碼數據,可以使用此屬性提供字符串對及其相關編碼方法的列表。
|
readwritenonatomicassign |
二維碼的錯誤更正級別。
|
readwritenonatomicassign |
用於生成二維碼的掩碼。
|
readwritenonatomicassign |
二維碼的模型。