I’m a new iphone developer, question is I want to know the sym.data ‘s type. Is it codebar or 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;
}
}
sym.typeName is what you want…
Take a look at the ZBar documentation, at the ZBarSymbol Class Reference.