iphone - how to get barcode type and format with zxing library -


i use zxing library barcode, qrcode , data matrix scanning. scanning process work fine.

i result string didscanresult delegate method of zxingwidgetcontroller.

- (void)zxingcontroller:(zxingwidgetcontroller*)controller didscanresult:(nsstring *)result { } 

but have 1 problem...

how type (text, url, address book, phone number, email address etc..) , format (qrcode, data matrix or barcode) of result.

please help...

and in advance...

assuming using zxingwidget right? since there no way barcode format in library. have done replaced library zxingobjc library barcode type format.

-(void)captureresult:(zxcapture *)capture result:(zxresult *)result {     if (!result) return;     // got result. display information result onscreen.     nsstring *formatstring = [self barcodeformattostring:result.barcodeformat];      nsstring *display = [nsstring stringwithformat:@"scanned!\n\nformat:      %@\n\ncontents:\n%@", formatstring, result.text]; } 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -