last day (15 days later) » 

1:31 PM
0
A: Dowload image from Firebase

wingsInstall SDWebImage pod from this link https://github.com/SDWebImage And in Your CollectioView cellForRow method var images_list = [String]() var imagesArray = [URL]() images_list.append(itemModel[indexPath.row]. imageURL) let storage = Storage.storage().reference() for x i...

 
Can't understand how it works. Maybe i cant fetch url using func fetchPrograms and then in cellForItemAt show images from firebase. I I pasted your code in my, but imgur.com/a/0WEeptP.
 
updated please see and did you installed sdwebimage pod?
 
Look at my structure)
 
If you are getting image url in your image imageURL then this code will work
 
Sorry, but i have an error.Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'No default Storage bucket found. Did you configure Firebase Storage properly?'
 
1:31 PM
stackoverflow.com/questions/43485769/…. see this link its just this line error let storageRef = storage.child("images/\(x).jpg")
 
Where I can fine this storage ref?
 
Hey bro you need to add this code inside you collectionView cellForRowAtIndex Method
 
Nothing displayed. Maybe I have bad link. But i don't know where I can see link which i should write let storageRef = storage.child("images/\(x).jpg")
 
what error you are getting now ?
 
Not error.Nothing displayed
I have a gray background instead image
 
1:31 PM
Do one thing print imagesArray and see you are getting url or not
 
imgur.com/a/r9hS9l3 Nothing printed. "Hello" doesn't print, too
 
This means we are not getting url
 
I understand. And how to fix it ?
 
See update its better to break big problem into small problem :)
 
imgur.com/a/QSUy71p does not exist. Maybe I can send you my code ahah. Because it's will be too long while I can understand how it works) . I never worked with Storage. As I understand I should receive url from Database in my func fetchPrograms and then sent it to cellForItemAt. But you but you wrote another way to code) and I can't understand. Sorry to bother with possibly stupid questions ;)
Every cell must have own image which contained in Database
 
1:31 PM
you know the code is working :)
But we are not making the correct URL
 
And how to get correctURL)
 
We need to make the correct URL 😉 like just copy one of your firebase image url and put it in browser and see you are getting image or not
 
Okay, have correctURL) but nothing to display. And this will set only one image for all cell. But Each cell has its own image)
 
You can your for loop code for that
 

last day (15 days later) »