如何使用我的iPhone/iPad应用程序生成QR码?
问题描述:
我有一些信息,如姓名,公司名称,公司名称,公司名称,公司名称等公司名称,公司名称,公司名称等使用这些信息,我想生成二维码,所以有没有任何免费的api是可用的,或者有什么办法来生成此代码的QR码?如何使用我的iPhone/iPad应用程序生成QR码?
答
有几种方法可以做到这一点。我在这个答案中放置了一个例子。
对于本答案,我们正在使用的200 x 200尺寸的QR码。了解更多详情see here。
QR代码谷歌API下面
http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl=MECARD:
实施例:
URL编码:
普通URL:
http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl=MECARD:ORG:Walmart商店公司,N:Mike Duke,电话:(479)273-4000,ADR:702 SW 8TH ST BENTONVILLE,AR 72712-6209,电子邮件:www.walmartstores.com
答
请参阅此项目为iPhone打包c代码:
https://github.com/kuapay/iOS-QR-Code-Generator
Just couple of steps & you are done :
1) Attach the libz.dylib library to your target in Xcode.
2) Drag the QRDraw and libpng folder files into your project.
3) Update the Header Search path under build settings menu.
希望这是足以让你的应用程序中集成。
你想如何实施?它会每次生成新的QR码还是只生成一次,让其他扫描QR码? – 2012-01-03 07:31:51
是的,我想要这样的机制,如果我提供所有上述细节,它应该返回我QR码。 – 2012-01-03 08:02:20