项目作者: gscarrone

项目描述 :
A simple Objective-C library which simplify QR Code generation starting from a string
高级语言: Objective-C
项目地址: git://github.com/gscarrone/iOS-QR-Code-Generator.git
创建时间: 2017-08-11T14:49:03Z
项目社区:https://github.com/gscarrone/iOS-QR-Code-Generator

开源协议:MIT License

下载


iOS QR Code Generator

A simple Objective-C library which simplify QR Code generation starting from a string.

Requirements

  • iOS >= 8.0

Usage

  1. #import "QRCodeGenerator.h"
  2. // generate a QR Code with `Hello World` string and default settings: black QR Code, white background, and 200x200 size
  3. imageView.image = [[QRCodeGenerator alloc] initWithString:@"Hello World"] getImage];

Customization

  1. #import "QRCodeGenerator.h"
  2. // generate a QR Code with `Hello World` and custom size and aspect
  3. QRCodeGenerator *qr = [[QRCodeGenerator alloc] initWithString:@"Hello World"];
  4. qr.size = CGSizeMake(400.0f, 400.0f); // 400x400 size
  5. qr.color = [CIColor colorWithRGBA:@"#FFFFFF"]; // white QR Code color
  6. qr.backgroundColor = [CIColor colorWithRGBA:@"#000000"]; // black background color
  7. imageView.image = [qr getImage];

Author

Giovanni Scarrone, https://www.giovanniscarrone.it/

License

MIT