GithubHelp home page GithubHelp logo

gscarrone / ios-qr-code-generator Goto Github PK

View Code? Open in Web Editor NEW
15.0 4.0 2.0 8 KB

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

License: MIT License

Objective-C 100.00%
objective-c ios coreimage qrcode

ios-qr-code-generator's Introduction

iOS QR Code Generator

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

Requirements

  • iOS >= 8.0

Usage

#import "QRCodeGenerator.h"

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

Customization

#import "QRCodeGenerator.h"

// generate a QR Code with `Hello World` and custom size and aspect
QRCodeGenerator *qr = [[QRCodeGenerator alloc] initWithString:@"Hello World"];
qr.size = CGSizeMake(400.0f, 400.0f); // 400x400 size
qr.color = [CIColor colorWithRGBA:@"#FFFFFF"]; // white QR Code color
qr.backgroundColor = [CIColor colorWithRGBA:@"#000000"]; // black background color

imageView.image = [qr getImage];

Author

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

License

MIT

ios-qr-code-generator's People

Contributors

gscarrone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

smithkre teffi

ios-qr-code-generator's Issues

Showing ARC Semantic issue

Hi there.
I have got below issue when i import QRCodeGenerator.h in my viewcontroller.h file.

QRCodeGenerator/CIColor+QRCode.m:38:45: No known class method for selector 'getSafeString:'

https://d.pr/i/hAdooN

How can i use this library in my viewcontroller?
Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.