我有一些信息,如名称,公司名称,公司网址等,使用这些信息,我想生成二维码,所以有任何免费的api可用,或有任何方法来生成二维码为此目的?
发布于 2012-01-03 16:02:06
有几种方法可以做到这一点。我已经在这个答案中放了一个例子。
对于这个问题,我们使用的是200x200大小的二维码。有关更多详细信息,请访问see here。
下面是Google API的二维码
http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl=MECARD
示例:
URL编码:
http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl=MECARD:ORG%3AArchitect+Of+The+Capitol%2CN%3ABarack+Obama%2CTEL%3A%28202%29+224-3121%2CADR%3A1331+F+St+NW+%23+SB15+Washington%2C+DC+20004-1107%2CEMAIL%3Awww.firstgov.gov
正常URL:
http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl=MECARD:ORG:Walmart商店公司N:Mike Duke,电话:(479)2734000,地址:702SW 8TH ST BENTONVILLE,AR 72712-6209,EMAIL:www.walmartstores.com
发布于 2012-01-03 16:37:18
请参阅此项目包装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.希望这足以集成到您的应用程序中。
https://stackoverflow.com/questions/8709085
复制相似问题