Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>use ZBar SDK for BR and QR code scanning in our iPhone application.</p> <p>you can find step by step article for this, how to do with sample code as well </p> <blockquote> <p><a href="http://rdcworld-iphone.blogspot.in/2013/03/how-to-use-barcode-scanner-br-and-qr-in.html" rel="nofollow">How to use Barcode Scanner (BR and QR) in iPhone Tutorial (using ZBar)</a></p> </blockquote> <p><strong>see how it works</strong></p> <ol> <li><p>download ZBar SDK from <a href="https://sourceforge.net/projects/zbar/files/iPhoneSDK/ZBarSDK-1.2.dmg/download" rel="nofollow"><strong>here</strong></a></p></li> <li><p>add below frameworks in your project</p> <ul> <li>AVFoundation.framework </li> <li>CoreGraphics.framework </li> <li>CoreMedia.framework </li> <li>CoreAudio.framework </li> <li>CoreVideo.framework </li> <li>QuartzCore.framework </li> <li>libiconv.dylib</li> </ul></li> <li><p>Add the library downloaded <strong>libzbar.a</strong> of zip in the frameworks </p></li> <li><p>import header in your class and confirm it's delegate</p> <p><strong>#import "ZBarSDK.h"</strong></p></li> </ol> <p>and</p> <pre><code>@interface ViewController : UIViewController &lt;ZBarReaderDelegate&gt; </code></pre> <p>5.scan image </p> <pre><code>- (IBAction)startScanning:(id)sender { NSLog(@"Scanning.."); resultTextView.text = @"Scanning.."; ZBarReaderViewController *codeReader = [ZBarReaderViewController new]; codeReader.readerDelegate=self; codeReader.supportedOrientationsMask = ZBarOrientationMaskAll; ZBarImageScanner *scanner = codeReader.scanner; [scanner setSymbology: ZBAR_I25 config: ZBAR_CFG_ENABLE to: 0]; [self presentViewController:codeReader animated:YES completion:nil]; } </code></pre> <p>6.get the result in</p> <pre><code>- (void) imagePickerController: (UIImagePickerController*) reader didFinishPickingMediaWithInfo: (NSDictionary*) info { // get the decode results id&lt;NSFastEnumeration&gt; results = [info objectForKey: ZBarReaderControllerResults]; ZBarSymbol *symbol = nil; for(symbol in results) // just grab the first barcode break; // showing the result on textview resultTextView.text = symbol.data; resultImageView.image = [info objectForKey: UIImagePickerControllerOriginalImage]; // dismiss the controller [reader dismissViewControllerAnimated:YES completion:nil]; } </code></pre> <p>Hope this will help you, also let me know if you find any trouble in this example, Happy to help</p> <p><a href="http://zbar.sourceforge.net/iphone/sdkdoc/" rel="nofollow">Official Docs</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload