iOS - How to set imageview of a parent view controller through child container?
问题 I am currently using a container view and I want to change the value of parent view controller imageView through child view controller using delegates, but it always returns nil . import UIKit protocol updateImage { func userIsDone(image:UIImage) } class ViewController: UIViewController, updateImage{ @IBOutlet weak var imageView:UIImageView! var image = UIImage(named: "hello.png") override func viewDidLoad() { super.viewDidLoad() self.imageView.image=self.image } func userIsDone(image: