How to get the type of code from zbar?
问题 In my Application Zbar is decoding perfectly. But the problem is Zbar can decode both QR code and Bar code . So after decoding How do i get the type of Encoding Style ? thanks in advance 回答1: There are return codes for type in ZBarSymbol. You will be looking for ZBAR_QRCODE for QR codes ZBarSymbol documentation Something like this should help you to get the symbol out: - (void) readerView: (ZBarReaderView*) view didReadSymbols: (ZBarSymbolSet*) syms fromImage: (UIImage*) img { //do something