Dhiren
Dhiren

Reputation: 51

get image from photoLibrary and display on tableview Cell?

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

Answers (1)

Goker Ge
Goker Ge

Reputation: 27

First, you need to convert to binary data: NSData or Data

Second, convert to string

Upvotes: -2

Related Questions