Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 二维码阅读器,用于在ios中扫描多个二维码_Iphone_Objective C_Ios7_Qr Code_Zbar Sdk - Fatal编程技术网

Iphone 二维码阅读器,用于在ios中扫描多个二维码

Iphone 二维码阅读器,用于在ios中扫描多个二维码,iphone,objective-c,ios7,qr-code,zbar-sdk,Iphone,Objective C,Ios7,Qr Code,Zbar Sdk,我想在我的iOS应用程序中集成一个二维码扫描仪,可以从一张图片中扫描两个以上的二维码。有没有好的扫描仪可用?我在iOS中尝试过ZBarSDK,但它一次只能扫描一个。使用ZBarSDK扫描时,它会提供所有条形码的扫描结果。但我们只选了一个。您可以检查此for循环的值 id<NSFastEnumeration> results = [info objectForKey: ZBarReaderControllerResults]; ZBarSymbo

我想在我的iOS应用程序中集成一个二维码扫描仪,可以从一张图片中扫描两个以上的二维码。有没有好的扫描仪可用?我在iOS中尝试过ZBarSDK,但它一次只能扫描一个。

使用ZBarSDK扫描时,它会提供所有条形码的扫描结果。但我们只选了一个。您可以检查此for循环的值

    id<NSFastEnumeration> results =
        [info objectForKey: ZBarReaderControllerResults];
        ZBarSymbol *symbol = nil;


        for(symbol in results){
            // EXAMPLE: Usually we just grab the first barcode
NSLog(@"REaded Text %@",symbol.data);
// Check out values here, it should return multiple results.
            break;
}
id结果=
[信息对象forkey:ZBarReaderControllerResults];
ZBarSymbol*符号=nil;
用于(结果中的符号){
//通常我们只抓取第一个条形码
NSLog(@“读取文本%@”,符号.数据);
//在这里签出值,它将返回多个结果。
打破
}

否则您可以使用此条形码阅读器。