Upvote:12

Aprove answer
cell.empPhoto.sd_setImageWithURL(url, placeholderImage:UIImage(imageNamed:"placeholder.png"))

Upvote:2

[cell.empPhoto.image sd_setImageWithURL:url placeholderImage:placeholderImage];

More Answer related to the Same Query

Upvote:1

//SDWebImage 4.0.0
self.profileImageView.sd_setImage(with: yourImageUrl, placeholderImage: UIImage("Your placeholder image name")

Credit Goes to: stackoverflow.com

Related question with same questions but different answers