I have a tableview, when I click on a cell, I would like to transfer a photo to another ViewController and place it right away in UIImageView
Photo transfer
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "segue" {
if let detail = segue.destination as? DetailViewController {
detail.PhotoProfile = selectedImage
}
}
}
on the second view so
@IBOutlet weak var PhotoProfile: UIImageView!