Skip to content

Selecting an image with ImagePickerController(Swift4.2)

   

# Swift 4.2

Read the Swift3 article here.
Selecting images with UIImagePickerController

It is a sample program to get an image from the photo library of the iPhone.
In order to select images from the photo library, the project's info.plist should state that the photo library will be used.
If you don't write this, UIImagePickerController won't work.
Use the following values for the key
NSPHOtoLibraryUsageDescription. The Type is a String and the reason for use is written in the Value.
I've heard that if you don't write the reason for using it, it will be rejected at the time of examination.

alt

  1. Function(Swift4.2)
  2. Array(Swift4.2)
  3. Print(Swift4.2)
  4. Search the contents of UITableView with UISearchBar(Swift4)
  5. Obtaining location information while using the app
  6. The interaction of the Lifesum app was nice, so I tried to recreate it.
  7. 押すとクニュっとするボタンを実装する