i have code with dynamically generated uiimage:
for product in self.productObject {
if product.code != nil{
self.imageView1.image = UIImage(contentsOfFile: documentsDir.appendingPathComponent("myfiles").path + "/" + product.code! + ".jpg")
}
}
I need to get the path of the currently displayed image in the button:
@IBAction func showImagesInPopup(_ sender: Any) {
var path = self.imageView1.image.path
self.performSegue(withIdentifier: "toProductDetail", sender: self)
}
How can I get it and save to "path"?