[英]get image from photoLibrary and display on tableview Cell?
I want to get image from photo library and show image on tableview cell.我想从照片库中获取图像并在 tableview 单元格上显示图像。
yes, I know, we can use let pickedImageFromGallery = info[UIImagePickerController.InfoKey.editedImage] as.是的,我知道,我们可以使用 let PickImageFromGallery = info[UIImagePickerController.InfoKey.editedImage] 作为。 UIImage imagePicker:dismiss(animated, true: completion. nil) in didFinishPickingMediaWithInfo method.
UIImage imagePicker:dismiss(animated, true: completion.nil) 在 didFinishPickingMediaWithInfo 方法中。
but I want to get the image from photo library as String and display on cell.但我想从照片库中获取图像作为字符串并显示在单元格上。
how can I do that?我怎样才能做到这一点?
First, you need to convert to binary data: NSData or Data首先,您需要转换为二进制数据:NSData 或 Data
Second, convert to string二、转为字符串
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.