I am converting image string in to URL, but when i am converting it I am getting nill vaalue in URL. This is my code :
func tableView(_ tbldata: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tbldata.dequeueReusableCell(withIdentifier: "ServiceCheckCell", for: indexPath) as! ServiceCheckTableViewCell
cell.selectionStyle = .none
//save image in imagestr
let imagestr = (self.data[indexPath.row] as AnyObject).value(forKey:"service_image") as? String
let URLString = imagestr
//convert URLSting into URL
let URL = NSURL(string: URLString!)
cell.service_image.hnk_setImageFromURL(URL! as URL )
return cell
}