Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8314909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:59:03+00:00 2026-06-08T20:59:03+00:00

So i need to write a QR reader for an iphone application. Usually frameworks

  • 0

So i need to write a QR reader for an iphone application. Usually frameworks like ZXING and ZBAr allow you to download an application and then read the barcode. I want to integrate it within the application itself. So basically i want to be able to tap a button and have it reading the QR code. Is this possible? If so are there any proper documentation on this? I tried using ZXing but when i link binaries libZXingWidget.a is unavailable. Also the documentation is not enough to know how to integrate it within the application. So let me know.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T20:59:05+00:00Added an answer on June 8, 2026 at 8:59 pm

    Here’s code to setup ZBar, make sure to add the SDK to your project and link your library.

    –

    (void)viewDidLoad
    {
            [ZBarReaderView class];
            readerView.readerDelegate = self;
            readerView.tracksSymbols = NO;
    
                //CHOOSE CAMERA
                if (some setting isEqual to CameraRear) {
                    readerView.device = [self backFacingCameraIfAvailable];
                }
                else {
                    readerView.device = [self frontFacingCameraIfAvailable];
                }
    
            [self relocateReaderPopover:[self interfaceOrientation]];
            [readerView start];
        }
    
    -(AVCaptureDevice *)frontFacingCameraIfAvailable
    {
        NSArray *videoDevices = [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo];
        AVCaptureDevice *captureDevice = nil;
        for (AVCaptureDevice *device in videoDevices)
        {
            if (device.position == AVCaptureDevicePositionFront)
            {
                captureDevice = device;
                break;
            }
        }
    
        //  couldn't find one on the front, so just get the default video device.
        if ( ! captureDevice)
        {
            captureDevice = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo];
        }
    
        return captureDevice;
    }
    
    -(AVCaptureDevice *)backFacingCameraIfAvailable
    {
        NSArray *videoDevices = [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo];
        AVCaptureDevice *captureDevice = nil;
        for (AVCaptureDevice *device in videoDevices)
        {
            if (device.position == AVCaptureDevicePositionBack)
            {
                captureDevice = device;
                break;
            }
        }
    
        //  couldn't find one on the front, so just get the default video device.
        if ( ! captureDevice)
        {
            captureDevice = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo];
        }
    
        return captureDevice;
    }
    
    -(void)relocateReaderPopover:(UIInterfaceOrientation)toInterfaceOrientation{
        if (toInterfaceOrientation == UIInterfaceOrientationLandscapeLeft) {
            readerView.previewTransform = CGAffineTransformMakeRotation(M_PI_2);
        } else if (toInterfaceOrientation == UIInterfaceOrientationLandscapeRight) {
            readerView.previewTransform = CGAffineTransformMakeRotation(-M_PI_2);
        } else if (toInterfaceOrientation== UIInterfaceOrientationPortraitUpsideDown) {
            readerView.previewTransform = CGAffineTransformMakeRotation(M_PI);
        } else {
            readerView.previewTransform = CGAffineTransformIdentity;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to write web aplication like google reader (using SmartGWT). Instead of RSS
The application need write file's last modification date. void Dater(String DateFile) { File file
I need to write a script in Matlab, which will read some data from
I'm writing a webcam app and I need to write and read about 15
I am doing a bible reader application for iPhone, I want to implement a
I'd like to write my own music streaming web application for my personal use
I need some help about JavaScript on iPhone UIWebView ; I have HTML like
I am currently developing an application in C# where I need to write a
I want to write video filter for Adobe Premiere, and I need to print/draw/render
I need to write a C++ code coverage program that takes in another C++

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.