You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
The text was updated successfully, but these errors were encountered:
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 ?
The text was updated successfully, but these errors were encountered: