Reputation: 51
I want to get image from photo library and show image on tableview cell.
yes, I know, we can use let pickedImageFromGallery = info[UIImagePickerController.InfoKey.editedImage] as! UIImage imagePicker.dismiss(animated: true, completion: nil) in didFinishPickingMediaWithInfo method.
but I want to get the image from photo library as String and display on cell.
how can I do that?
Upvotes: 1
Views: 91
Reputation: 27
First, you need to convert to binary data: NSData or Data
Second, convert to string
Upvotes: -2