Latest 1.1
License MIT
Platforms ios 7.0, requires ARC

UIImageView Subclass for displaying a QR Code


Copy the JYYQRCodeView class into your project or add this line to your Podfile:

pod 'JYYQRCodeView', '~> 1.1'


Import the header:

#import "JYYQRCodeView.h"

Then simply alloc and init the view like so (or use storyboards if you are so inclined)

JYYQRCodeView *someCodeView = [[JYYQRCodeView alloc] initWithFrame:CGRectMake(0, 0, 100, 100) stringToEncode:@"Hello, world!" andErrorCorrectionLevel:ErrorCorrectionLevelLow];

You can update the encoded text like so

[someCodeView encodeString:@"New String" withErrorCorrectionLevel:ErrorCorrectionLevelLow];

Note, You will need to pass in one of the following ErrorCorrectionLevels. You can read more about them here

ErrorCorrectionLevelLow, ErrorCorrectionLevelMedium, ErrorCorrectionLevelQuartile, ErrorCorrectionLevelHigh

Latest podspec

    "name": "JYYQRCodeView",
    "version": "1.1",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "summary": "UIImageView Subclass for displaying a QR Code",
    "homepage": "",
    "authors": "Tom Hutchinson",
    "source": {
        "git": "",
        "tag": "1.1"
    "source_files": "JYYQRCodeView/*.{h,m}",
    "platforms": {
        "ios": "7.0"
    "requires_arc": true

Pin It on Pinterest

Share This