QRCode Reader on iOS7

Flatiron School / 1 November 2013

The following is a guest post by Dasmer Singh and originally appeared on his blog. Dasmer is currently in the iOS-000 class at The Flatiron School. You can follow him on Twitter here.

iOS7 gave developers a bunch of cool tools.  One of them is the ability to read a variety of different types of bar codes from an AVCaptureSession.  

The barcode data comes in as metadata of the live AVCaptureSession. Using some of Ray Wenderlich’s tutorial, I wrote a simple app that reads the string of any QRcode and displays it in an alert.  The code is posted here:

I also have submitted a new app to the App Store using what I learned. The app enables an iOS user to swap contact information simply by scanning the QR code from another device, similar to how PINs are exchanged in BBM.   I’ll definitely write a blog entry upon its approval.  

Till next time!

Visualization and the Power of Abstraction Previous Post Sublime Text Demo: How the F Did They Do That? Next Post