How to display images in Collection View

Hi

 

  I am getting the below Data thru API . I want to display Images Horizontally in Collection View.

Those URL which have not Image Name should not be considered . IN my case first 2 Url’s don’t Have. So Only 2 images should be displayed.

 

{
  "error": false,
  "message": "Ok",
  "result": [
  {

  "pimg": "https://www.users.com/aff/Users/"
  },
  {

  "pimg": "https://www.users.com/aff/Users/"
  },
  {

  "pimg": "https://www.users.com/aff/Users/1.jpg"
  },
  {

  "pimg": "https://www.users.com/aff/Users/2.jpg"
  }
  ]
}

 

Thanks

Powered by WPeMatico

About

You may also like...

Comments are closed.