简体   繁体   English

ZBAR sdk 未在 iPhone 4s (ios 5.1) 上检测到 QRCODES...?

[英]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.我已将 ZBAR sdk 集成到我的项目中,它对条形码工作正常,但未检测到 QRCode。 I am using the iPhone 4s and I don't have any other device.. is this a known issue..?我使用的是 iPhone 4s,我没有任何其他设备。这是一个已知问题吗? I am using the ZBarReaderViewController...我正在使用 ZBarReaderViewController...

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];

This may be because of the data that you are encoding in QRCode.这可能是因为您在 QRCode 中编码的数据。 In Barcode it will be a number always, but in QR code code it is not like that.在 Barcode 中它总是一个数字,但在 QR code 中它不是那样的。 Try to store the data in a string and log the string.尝试将数据存储在字符串中并记录该字符串。

i have use zbar Api for the UPC barcode scanning and its working very fine follow the below tutorial in ios 5.please refer it and try it i have tested in devices its working well.我已经使用 zbar Api 进行 UPC 条码扫描,它的工作非常好,请按照 ios 中的以下教程进行操作 5.请参考并尝试我已经在设备中测试过它运行良好。

http://iphonenativeapp.blogspot.in/2011/07/qr-code-readerscanner-for-iphone-app-in.html http://iphonnativeapp.blogspot.in/2011/07/qr-code-readerscanner-for-iphone-app-in.html

Thanks谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM