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.
- create zxingwidgetcontroller object , give delegate.
the delegate should implement
- (void)zxingcontroller:(zxingwidgetcontroller*)controller didscanresult:(nsstring *)result- (void)zxingcontrollerdidcancel:(zxingwidgetcontroller*)controllerpresent zxing controller. when cancelled or scan, zxing delegate methods called. make sure dismiss zxingcontroller in both delegate methods.
- in zxingcontroller:didscaneresult: result have string interested.
Comments
Post a Comment