How to get the edited image from UIImagePickerController in Swift?

前端 未结 5 608
北荒
北荒 2021-02-09 03:11

I have seen and read the documents of Apple where they have clearly mentioned about the key UIImagePickerControllerEditedImage. But when I am running my following code, I am no

5条回答
  •  广开言路
    2021-02-09 03:44

    Swift 4.2

    if let editedImage = info[UIImagePickerController.InfoKey.editedImage] as? UIImage {
            // Use editedImage Here
        }
    

提交回复
热议问题