Hi
I have managed to display text from firebase in a tableview with this code
cell.textLabel?.text = posts[indexPath.row].caption
I wondered how i also can display uploaded images? I have already managed to upload the image to firebase but not be able to display together with my text.
Thanks in advance!
Hey Gustav,
This is a multi-step process.
- First you have to get the URL to the image in Firebase storage.
- Then you have to download the image data and create a new UIImage object with the data.
- Finally, you can set the image to the image view for display
Are you a student in my paid courses? If so there’s an example in one of the lessons that I could point you to.
If not, no worries. I can point you to some Firebase documentation to grab the URL of the image. Then downloading is a matter of using basic iOS networking classes or an image helper library like SDWebImage!
Hi again
Thanks for answering, Im not a student yet in your paid courses. Please point me to that documentations, again thank you very much =)
Best regards