So the way I struct my retrieved data is by;
struct framePic { let imagedB : Data! let pricedB : String! }
I've managed to retrieve the data but I dont know how to set image on tableView? I've managed to figure it out with a label... but not with image?
this is the code for the cell in the table;
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell: RowCellTableView = myTableView.dequeueReusableCell(withIdentifier: "cell") as! RowCellTableView
// sets label
cell.priceView.text = framePics[indexPath.row].pricedB
// set image on UIimageView???
--- I dont know how to add this? I need somehow to get the list of only the images??? I believe if I had the array variable like; imageFiles[] I could have done;
imageFiles[indexPath.row].getDataInBackground... But in my case I use struct so how am I supposed to do this in this case?
the RowCellTableView just contains;
@IBOutlet weak var imageView: UIImageView!
@IBOutlet weak var priceView: UILabel!