Get an array images from firebase use SDWebImage

Hi All. I’m novice in swift. So I am asking for help. I write an application and I was faced with the problem.

I need to receive a different number of images in collectionView which is inside a tableView. For receive images I use url from firebase and to put the images in collectionViewl i use SDWebImage.

In tableView i use name and address. In collectionView which inside a tableView i use images for horizontal scrolling.

For example i want:

– First cell have one name, one address and have two images

– Second cell have one name, one address and have five images

– Third cell have one name, one address and have three images

And so on.

My source code on GitHub – https://github.com/denikaev/test2

My firebase looks like this:

https://www.dropbox.com/s/l411ut3kz19hkfw/%D0%A1%D0%BA%D1%80%D0%B8%D0%BD%D1%88%D0%BE%D1%82%202017-07-31%2021.50.01.png?dl=0

And i want application looked like this:

https://www.dropbox.com/s/5pcjh5killwa7zr/%D0%A1%D0%BA%D1%80%D0%B8%D0%BD%D1%88%D0%BE%D1%82%202017-07-31%2021.50.48.png?dl=0

 

I hope someone will help me.

Thanks.

Powered by WPeMatico

About

You may also like...

Comments are closed.