-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
Thank you so much for the barcode generator.
From "AVMetadataObjectTypeEAN13Code" description: AVMetadataMachineReadableCodeObject instances generated from EAN-13 (including UPC-A) codes return this identifier as the type.
The barcode does have length 12 digits, like 123456789012. EAN-13 barcode does have 13 digits
isContentsValid method returns NO because contents.length == self.length is not TRUE. (12 != 13)
As workaround I added one zero before barcode (0123456789012) and it works for me.
[CodeGen genCodeWithContents:@"0123456789012" machineReadableCodeObjectType:objectType]
But could you please add zero inside API ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels