Latest 1.0.2
Homepage https://github.com/hotwill07/CIQRCodeGenerator
License MIT License
Platforms ios 7.0, requires ARC
Frameworks Foundation, UIKit
Authors

用来生成一个高清二维码以及指定颜色的高清二维码

pod 'CIQRCodeGenerator', '~> 1.0.0'

主要代码如下:

  CGFloat codeWidth = 150;

  CIQRCodeGeneratorView *codeGenrator = [[CIQRCodeGeneratorView alloc] initWithFrame:CGRectMake((self.view.frame.size.width - codeWidth) / 2.0, (self.view.frame.size.height - codeWidth) / 2.0, codeWidth, codeWidth)];

  //生成普通的高清二维码<br/>
  BOOL success = [codeGenrator generatedCIQRCodeWithAddress:@"http://www.baidu.com"];

  //生成带颜色的高清二维码<br/>
  success = [codeGenrator generatedCIQRCodeWithAddress:@"http://www.baidu.com" withHexColorString:@"#FF0000"];

Latest podspec

{
    "name": "CIQRCodeGenerator",
    "version": "1.0.2",
    "summary": "A CIQRCode used on iOS",
    "description": "It is a programe that can create a normal CIQRCode or with color",
    "homepage": "https://github.com/hotwill07/CIQRCodeGenerator",
    "license": "MIT License",
    "authors": {
        "hotwill07": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/hotwill07/CIQRCodeGenerator.git",
        "tag": "1.0.2"
    },
    "source_files": "CIQRCodeGenerator/*",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This