在iOS8中,我们会告知应识别的条形码类型,如下所示。
self.acceptedBarcodeTypes = [NSMutableArray new];
[self.acceptedBarcodeTypes addObject:@"org.iso.QRCode"];
[self.acceptedBarcodeTypes addObject:@"org.iso.PDF417"];
[self.acceptedBarcodeTypes addObject:@"org.gs1.UPC-E"];
[self.acceptedBarcodeTypes addObject:@"org.iso.Aztec"];
[self.acceptedBarcodeTypes addObject:@"org.iso.Code39"];
[self.acceptedBarcodeTypes addObject:@"org.iso.Code39Mod43"];
[self.acceptedBarcodeTypes addObject:@"org.gs1.EAN-13"];
[self.acceptedBarcodeTypes addObject:@"org.gs1.EAN-8"];
[self.acceptedBarcodeTypes addObject:@"com.intermec.Code93"];
[self.acceptedBarcodeTypes addObject:@"org.iso.Code128"];
如果我们减少类型数量,您在条形码识别方面有显着的性能提升或无关紧要?