Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.02 KB

Readme.md

File metadata and controls

25 lines (19 loc) · 1.02 KB

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 [email protected].

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