Skip to content

moqod/ios-qr-code-encoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iOS QR Code Encoder

This is an Objective-C library that helps to easily convert a UIImage with a QR-code from NSString with just one line of code. It uses qrencode to generate QR code and CoreGraphics to draw an image.

When integrating this solution to your project, please, spare us a like on Facebook, follow us on Twitter or spread a good word about us!

Feel free to get in touch with us in regards to any questions or cooperation requests via email info@moqod.com.

Customization

To change the fill color you need to pass fillColor parameter in the method:

+ (UIImage *)mdQRCodeForString:(NSString *)qrString size:(CGFloat)size fillColor:(UIColor *)fillColor;

Sample

    // image view is an instance of UIImageView
    imageView.image = [UIImage mdQRCodeForString:@"Hello, world!" size:imageView.bounds.size.width fillColor:[UIColor darkGrayColor]];

License

MIT

About

This is an Objective-C library that helps to easily convert a UIImage with a QR-code from NSString with just one line of code.

Resources

Stars

Watchers

Forks

Packages

No packages published