https://github.com/codeweaver13/hlqrcodescanner
https://github.com/codeweaver13/hlqrcodescanner
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codeweaver13/hlqrcodescanner
- Owner: CodeWeaver13
- License: mit
- Created: 2016-09-28T10:59:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-28T11:27:59.000Z (over 8 years ago)
- Last Synced: 2025-03-14T15:02:58.410Z (3 months ago)
- Language: Swift
- Size: 63.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HLQRCodeScanner
[](https://github.com/wangshiyu13/HLQRCodeScanner/blob/master/LICENSE)
[](https://travis-ci.org/wangshiyu13/HLQRCodeScanner)
[](http://cocoapods.org/?q= HLQRCodeScanner)
[](https://www.apple.com/nl/ios/)## Example
* 导入框架
```swift
import HLQRCodeScanner
```* 打开扫描控制器,扫描及完成回调
```swift
let scanner = HLQRCodeScanner.scanner { (result) in
debugPrint(result)
}
showDetailViewController(scanner, sender: nil)
```* 生成二维码图片
```swift
let cardName = "wangshiyu13"
let avatar = UIImage(named: "avatar")self.imageView.image = HLQRCodeScanner.createQRCodeImage(cardName, avatar: avatar, scale: 0.2)
```## Requirements
This library requires iOS 8.0+ and Xcode 7.0+.
## Installation
HLQRCodeScanner is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "HLQRCodeScanner"
```## Author
wangshiyu13, [email protected]
## License
HLQRCodeScanner is available under the MIT license. See the LICENSE file for more info.