https://github.com/pcjbird/qrcodeuikit
一款让扫码变得简单的视图控制器。
https://github.com/pcjbird/qrcodeuikit
barcode qrcode scan ui
Last synced: about 1 year ago
JSON representation
一款让扫码变得简单的视图控制器。
- Host: GitHub
- URL: https://github.com/pcjbird/qrcodeuikit
- Owner: pcjbird
- License: mit
- Created: 2018-01-02T08:17:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-24T07:51:06.000Z (almost 3 years ago)
- Last Synced: 2025-04-08T12:02:54.002Z (about 1 year ago)
- Topics: barcode, qrcode, scan, ui
- Language: Objective-C
- Homepage:
- Size: 1.29 MB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://travis-ci.org/pcjbird/QRCodeUIKit)
[](http://cocoadocs.org/docsets/QRCodeUIKit/)
[](http://cocoadocs.org/docsets/QRCodeUIKit/)
[](https://www.apache.org/licenses/LICENSE-2.0.html)
[](https://github.com/pcjbird/QRCodeUIKit/releases)
[](https://github.com/pcjbird/QRCodeUIKit/releases)
[](https://pcjbird.github.io)
# QRCodeUIKit
一款让扫码变得简单的视图控制器。
## 演示 / Demo

## 安装 / Installation
方法一:`QRCodeUIKit` is available through CocoaPods. To install it, simply add the following line to your Podfile:
```
pod 'QRCodeUIKit'
```
## 使用 / Usage
```
#import
- (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

[](https://twitter.com/intent/tweet?text=https://github.com/pcjbird/QRCodeUIKit)
[](https://twitter.com/pcjbird)