2
我是一个新的iphone开发者,问题是我想知道sym.data的类型。它是codebar还是qrcode?如何使用zbar sdk知道结果类型(条码或qrcode)?
- (void) readerView: (ZBarReaderView*) view
didReadSymbols: (ZBarSymbolSet*) syms
fromImage: (UIImage*) img
{
//do something useful with results and display resultText in resultViewController
for(ZBarSymbol *sym in syms) {
imageResult3.image = img;
**resultText3.text = sym.data;**
//return resultText;
break;
}
}