Latest 1.1.6
Homepage https://github.com/pcjbird/QRCodeUIKit
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation, UIKit, CoreGraphics, AVFoundation, CoreImage, Photos
Authors

logo
Build Status
Pod Version
Pod Platform
Pod License
CocoaPods
CocoaPods
GitHub release
GitHub release
Website

一款让扫码变得简单的视图控制器。

演示 / Demo

QRCodeUIKit

安装 / Installation

方法一:QRCodeUIKit is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'QRCodeUIKit'

使用 / Usage   

#import <QRCodeUIKit/QRCodeUIKit.h>
     
- (IBAction)OnQRCodeScan:(id)sender {
     QuickQRCodeScanController *scanVC = [QuickQRCodeScanController new];
     [self.navigationController pushViewController:scanVC animated:YES];
}
     
- (IBAction)OnBarCodeScan:(id)sender {
     QuickBarCodeScanController *scanVC = [QuickBarCodeScanController new];
     [self.navigationController pushViewController:scanVC animated:YES];
}
     
- (IBAction)OnGenQRCode:(id)sender {
     UIImage* logo = [[UIImage imageNamed:@"AppIcon60x60"] yy_imageByRoundCornerRadius:8.0f];
     self.qrcode.image = [QuickQRCodeGenerator generateQRCode:@"我是一个二维码" width:CGRectGetWidth(self.qrcode.frame) height:CGRectGetHeight(self.qrcode.frame) logo:logo logoSize:CGSizeMake(60, 60)];
     self.qrcodeback.hidden = NO;
}
     
- (IBAction)OnGenBarCode:(id)sender {
     NSString* code = @"8986011684013010860";
     self.barcodeLabel.text = [QuickBarCodeGenerator formatCode:code];
     self.barcode.image = [QuickBarCodeGenerator generateBarCode:code width:CGRectGetWidth(self.barcode.frame) height:CGRectGetHeight(self.barcode.frame)];
}

关注我们 / Follow us

  
QRCodeUIKit

Twitter URL
Twitter Follow

Latest podspec

{
    "name": "QRCodeUIKit",
    "version": "1.1.6",
    "summary": "u4e00u6b3eu8ba9u626bu7801u53d8u5f97u7b80u5355u7684u89c6u56feu63a7u5236u5668",
    "description": "u4e00u6b3eu8ba9u626bu7801u53d8u5f97u7b80u5355u7684u89c6u56feu63a7u5236u5668,u652fu6301 u4e8cu7ef4u7801/u6761u7801 u626bu63cfuff0cu53efu65e0u9700u4e00u884cu4ee3u7801u5febu901fu96c6u6210u3002",
    "homepage": "https://github.com/pcjbird/QRCodeUIKit",
    "license": "MIT",
    "authors": {
        "pcjbird": "[email protected]"
    },
    "source": {
        "git": "https://github.com/pcjbird/QRCodeUIKit.git",
        "tag": "1.1.6"
    },
    "social_media_url": "http://www.lessney.com",
    "requires_arc": true,
    "platforms": {
        "ios": "8.0"
    },
    "frameworks": [
        "Foundation",
        "UIKit",
        "CoreGraphics",
        "AVFoundation",
        "CoreImage",
        "Photos"
    ],
    "source_files": [
        "QRCodeUIKit/*.{h,m}",
        "QRCodeUIKit/Categories/*.{h,m}"
    ],
    "public_header_files": "QRCodeUIKit/*.{h}",
    "resource_bundles": {
        "QRCodeUIKit": [
            "QRCodeUIKitBundle/*.*"
        ]
    },
    "pod_target_xcconfig": {
        "OTHER_LDFLAGS": "-lObjC"
    },
    "subspecs": [
        {
            "name": "QuickTextQRResultController",
            "source_files": [
                "QRCodeUIKit/QuickTextQRResultController/*.{h,m}",
                "QRCodeUIKit/Categories/*.{h,m}"
            ],
            "public_header_files": "QRCodeUIKit/QuickTextQRResultController/QuickTextQRResultController.h",
            "dependencies": {
                "TTTAttributedLabel": []
            }
        },
        {
            "name": "QuickQRCodeScanController",
            "source_files": [
                "QRCodeUIKit/QuickQRCodeScanController/*.{h,m}",
                "QRCodeUIKit/QuickQRCodeScanController/UI",
                "QRCodeUIKit/Categories/*.{h,m}"
            ],
            "public_header_files": [
                "QRCodeUIKit/QuickQRCodeScanController/QuickQRCodeScanController.h",
                "QRCodeUIKit/QuickQRCodeScanController/QuickQRCodeScanResultHandler.h",
                "QRCodeUIKit/QuickQRCodeScanController/UI/QuickQRCodeScanViewStyle.h"
            ],
            "dependencies": {
                "Toast": [],
                "QRCodeUIKit/QuickTextQRResultController": [],
                "ZXingObjC": [],
                "QMUIKit/QMUIComponents/QMUIFillButton": []
            }
        },
        {
            "name": "QuickBarCodeScanController",
            "source_files": "QRCodeUIKit/QuickBarCodeScanController/*.{h,m}",
            "public_header_files": "QRCodeUIKit/QuickBarCodeScanController/QuickBarCodeScanController.h",
            "dependencies": {
                "QRCodeUIKit/QuickQRCodeScanController": []
            }
        },
        {
            "name": "QuickQRCodeGenerator",
            "source_files": "QRCodeUIKit/QuickQRCodeGenerator/*.{h,m}",
            "public_header_files": "QRCodeUIKit/QuickQRCodeGenerator/QuickQRCodeGenerator.h"
        },
        {
            "name": "QuickBarCodeGenerator",
            "source_files": "QRCodeUIKit/QuickBarCodeGenerator/*.{h,m}",
            "public_header_files": "QRCodeUIKit/QuickBarCodeGenerator/QuickBarCodeGenerator.h"
        },
        {
            "name": "QuickQRCodeDetector",
            "source_files": "QRCodeUIKit/QuickQRCodeDetector/*.{h,m}",
            "public_header_files": "QRCodeUIKit/QuickQRCodeDetector/QuickQRCodeDetector.h",
            "dependencies": {
                "ZXingObjC": []
            }
        }
    ]
}

Pin It on Pinterest

Share This