Search code examples
iphoneobjective-ciosios5.1zbar-sdk

ZBAR sdk not detecting QRCODES on iPhone 4s (ios 5.1)...?


I have integrated the ZBAR sdk in my project and it is working fine for barcodes but it is not detecting the QRCodes. I am using the iPhone 4s and I don't have any other device.. is this a known issue..? I am using the ZBarReaderViewController...


Solution

  • Double check that the scanner is configure for reading QR codes. Check my example below:

    ZBarImageScanner *scanner = reader.scanner;
    
    [scanner setSymbology:ZBAR_QRCODE
                   config:ZBAR_CFG_ENABLE
                       to:1];