Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot able to convert generated qrcode image to Data #39

Open
Hemavathi17 opened this issue Mar 17, 2018 · 0 comments
Open

Cannot able to convert generated qrcode image to Data #39

Hemavathi17 opened this issue Mar 17, 2018 · 0 comments

Comments

@Hemavathi17
Copy link

Hi,
I'm trying to convert the generated qrcode image to data to send an mail attachment , but it always returns nil. Here follows sample code,

    var qrCode = UIImage()
    qrCode = QRCode.generateImage("123456", avatarImage: UIImage(named: ""), avatarScale: 0.3)!
    let imgData = UIImageJPEGRepresentation(qrCode, 1.0)!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant