I have an array result
["https://woo.demoapp.xyz/wp-content/uploads/2017/10/sunglasses.jpg"]
i try to convert to string url in tableview and show image with SDWebImage
let dic = productArray[indexPath.row] as! NSDictionary
let image = dic.object(forKey: "images") as! NSArray
let imageUrl = image.value(forKey: "src") as! NSArray as! [String]
cell.pinImage.sd_setImage(with: URL(string: imageUrl), placeholderImage: UIImage(named: "pin1"))
imageUrl? If that's the caseURL(string: imageUrl)will clearly fail, becauseimageUrlis said to beas! NSArray as! [String], not a String.URL(string: imageUrl.first)? But your parsing seems wrong (there isn't one, try to use custom class/struct). It should be corrected.