Latest 0.0.1
Homepage https://github.com/jamalping/XPQrCode
License MIT
Platforms ios 8.0

CI Status
Version
License
Platform

示例

image.png

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

XPQrCode is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'XPQrCode'

user

let imageViewLarge = UIImageView.init(frame: CGRect.init(x: 100, y: 100, width: 100, height: 100))
        self.view.addSubview(imageViewLarge)

        let imageViewLarge1 = UIImageView.init(frame: CGRect.init(x: 100, y: 400, width: 100, height: 100))
        self.view.addSubview(imageViewLarge1)

        imageViewLarge.image = {

            var qrCode = XPQrCode("http://www.baidu.com")!
            qrCode.size = imageViewLarge.bounds.size
            qrCode.errorCorrection = .High
            return qrCode.insertAvatarImage(codeImage: qrCode.image!, avatarImage: UIImage.init(named: "rage")!)
        }()

        imageViewLarge1.image = {

            var qrCode = XPQrCode("http://www.baidu.com")!
            qrCode.size = imageViewLarge.bounds.size
            qrCode.errorCorrection = .High
            return qrCode.image
        }()

Author

jamalping, [email protected]

License

XPQrCode is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "XPQrCode",
    "version": "0.0.1",
    "summary": "XPQrCode.",
    "description": "this is XPQrCode",
    "homepage": "https://github.com/jamalping/XPQrCode",
    "license": {
        "type": "MIT",
        "file": "FILE_LICENSE"
    },
    "authors": "jamalping",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/jamalping/XPQrCode.git",
        "tag": "0.0.1"
    },
    "source_files": "XPQrCode/Classes/**/*"
}

Pin It on Pinterest

Share This