Loading images from url in table view using Sdwebimage

1. Podfile

Nitish Kumar
Oct 20, 2020
platform :ios, '8.0'
pod 'SDWebImage', '~> 5.0'

2. In this project i am using Alamofire and swiftyjson pods for url-session.

In func callJsonData() -> i am calling url and appending data in local array.

3. After appending data, table view will reload.

Note:- Using sdwebimage placeholder image can also used

cell.userimg?.sd_setImage(with: URL( string:useringurl[indexPath.row]), placeholderImage: UIImage(named: “userimg”), completed: nil)

https://github.com/nitish912/jsonDataFetch/blob/master/jsonDataFetching/ViewController.swift

project detail - https://github.com/nitish912/jsonDataFetch

--

--

Nitish Kumar
Nitish Kumar

Written by Nitish Kumar

I developed and maintain applications aimed at a range of iOS devices including mobile phones and tablet computers.

No responses yet