条形码阅读器的iOS库

可能重复:
有没有iOS的条形码识别框架?

哪个是iOS条码阅读器最好的免费sdk或库? 我目前正在为我的公司实施一个应用程序,我们想支持条形码和二维码扫描,有人可以请build议我最好的SDK在iOS4,5上工作?

我build议你,看看下面的条码扫描一些很好的API

  • 斑马线
  • ZBar条码阅读器
  • shopsavvy
  • Softek条码阅读器SDK
  • Scandit条码扫描器 (不是免费的)

如果您使用ZBar API,这里是代码片段

ZBarReaderController *reader = [ZBarReaderController new]; reader.readerDelegate = self; //... code to get image CGImageRef imgCG = image.CGImage; id<NSFastEnumeration> results = [reader scanImage:imgCG]; ZBarSymbol *symbol = nil; for(symbol in results) // EXAMPLE: just grab the first barcode break; resultText.text = symbol.data; 

另外,请确保PL不要忘记使用AVFoundation,CoreVideo和CoreMedia框架的弱链接

ZBAR iPhone SDK非常适合阅读条形码和qrcodes。 你可以在这里findsdk文件以及如何使用sdk教程