How to allow user to pick the image with Swift?

后端 未结 21 869
[愿得一人]
[愿得一人] 2020-12-02 06:01

I am writing my first iOS application (iPhone only) with Swift. The main application view should allow user to choose the image from the photo gallery.

I\'ve found

21条回答
  •  没有蜡笔的小新
    2020-12-02 06:42

    Just answering here to mention: info[UIImagePickerControllerEditedImage] is probably the one you want to use in most cases.

    Other than that, the answers here are comprehensive.

提交回复
热议问题