Skip to content

Generating a QR code from a string or URL


This is a sample code to generate a QR code from a character string or URL.

Reference: CIImageをData型に変換したときにハマった時の対処法(Swift3.0)

The generated QR code is here.


  1. Display an alert with UIAlertController
  2. UIAlertController(UIActionSheet)
  3. Enumerated Type
  4. How to learn how to program iPhone apps
  5. Using UserDefaults to save parameters
  6. Selecting values using the UIPickerView
  7. Repeating at a certain time