本文介绍了用于条形码阅读器的iOS库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞!哪个是iOS条形码阅读器最好的免费sdk或库?我目前正在为我的公司实施一个应用程序,我们想要支持条形码和二维码扫描,有人可以建议我在iOS4,5上运行最好的sdk吗?Which is the best free sdk or library for iOS barcode reader? i am currently implementing an app for my company and we want to support barcode and QR code scan, can someone please suggest me the best sdk that works on iOS4,5 ?推荐答案我建议你,看看下面一些用于条形码扫描的好APII would suggest you, have a look on below some good API for bar code scanning ZXing ZBar条形码阅读器 shopavvy Softek条形码Reader SDK Scandit条码扫描器 (不是免费的)ZXingZBar bar code readershopsavvySoftek Barcode Reader SDKScandit Barcode Scanner (not free)如果你使用ZBar API,这是代码片段Here is the code snip if you use ZBar APIZBarReaderController *reader = [ZBarReaderController new];reader.readerDelegate = self; //... code to get imageCGImageRef 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框架使用弱链接Also Make sure PL don't forget to use weak link for AVFoundation, CoreVideo and CoreMedia framework 这篇关于用于条形码阅读器的iOS库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-02 04:57