objective c - How to implement zxing in os x application to get or read the qr code data? -


i looking implement class able read qr code file (jpeg, bmp, whatever) or camera (both internal , external) , output information nsstring.

i've attempted use objective-c osx project included zxing, have been unable play nice own projects.

has had success in doing this? or suggest me other options read qr code web services etc. please me overcome problem. in advance!

zxing comes sample project showing how works in ios. example it.

i used zxing project in project of own, , works great. took few google searches remove compile errors, out there.

  1. create zxingwidgetcontroller object , give delegate.
  2. the delegate should implement

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

    - (void)zxingcontrollerdidcancel:(zxingwidgetcontroller*)controller

  3. present zxing controller. when cancelled or scan, zxing delegate methods called. make sure dismiss zxingcontroller in both delegate methods.

  4. in zxingcontroller:didscaneresult: result have string interested.

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -