Xcode 8 - How to Create a QR Code Generator! (Swift 3 Programming)

preview_player
Показать описание
Rafael here, and today i'm going to show you how to make a QR code generator app using Swift!

ADD ME ON SKYPE: rafa.v35

****CHECK OUT MY GAMES ON THE APP STORE!!!!!!******

Рекомендации по теме
Комментарии
Автор

To anyone wondering if the image is extremely blurry, then simply replace the if statement with this

if let myString = textField.text {

//data is a constant
let data = myString.data(using: .ascii, allowLossyConversion: false)
let filter = CIFilter(name: "CIQRCodeGenerator")
filter?.setValue(data, forKey: "inputMessage")

let ciImage = filter?.outputImage

let transform = CGAffineTransform(scaleX: 10, y: 10)
let transformImage = ciImage?.applying(transform)

let image = UIImage(ciImage: transformImage!)
imageViewQR.image = image


saveButton.isEnabled = true

}

xxRafaelProductions
Автор

This amazing video and easy to follow it. I hope you create a video about how to scan barcode then display product information.

noofalsaadi
Автор

Hi. I have been trying to use the information from your tutorial and am glad to have found this video. I am currently struggling though because after following your tutorial and checking other sources to see that it is correct, I continue to get the same SIGBRT error, which says:
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<CIQRCodeGenerator setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key inputmessage.'
This seems to indicate the "inputmessage is not cooperating.

It would be extremely helpful if you had some idea why this is. Thank you very much.

zaknelson
Автор

Thank you for the quick response! I tried running it on the actual device and came across the same error. Perhaps I am misunderstanding what you are saying. How did you get it to build in the simulator in your video?

zaknelson
Автор

I want to put a vcard text in the text field, how can i do it?

Josegober
join shbcf.ru